def convert_and_store(file_or_path):
"""
:param file_or_path: use a single file with full path or a full path
all the files end with under the path will be converted and store into directory named with the file name
"""
if not os.path.isdir(file_or_path):
convert_file_into_directory(file_or_path)
else:
for filename in os.listdir(file_or_path):
if filename.endswith(Res.hprof_suffix):
convert_file_into_directory(os.path.join(file_or_path, filename))
评论列表
文章目录