Fixed bugs in update_file() method and create_hdf5_file_from_filesystem_path()
This commit is contained in:
@@ -138,10 +138,10 @@ def create_hdf5_file_from_filesystem_path(path_to_input_directory: str,
|
||||
select_dir_keywords[i] = keyword.replace('/',os.sep)
|
||||
|
||||
if not path_to_filenames_dict:
|
||||
# On dry_run=True, returns path to files dictionary of the output directory without making a actual copy of the input directory
|
||||
path_to_output_directory = os.path.join(path_to_input_directory,'..')
|
||||
path_to_filenames_dict = utils.copy_directory_with_contraints(path_to_input_directory,
|
||||
path_to_output_directory,
|
||||
# On dry_run=True, returns path to files dictionary of the output directory without making a actual copy of the input directory.
|
||||
# Therefore, there wont be a copying conflict by setting up input and output directories the same
|
||||
path_to_filenames_dict = utils.copy_directory_with_contraints(input_dir_path=path_to_input_directory,
|
||||
output_dir_path=path_to_input_directory,
|
||||
dry_run=True)
|
||||
# Set input_directory as copied input directory
|
||||
root_dir = path_to_input_directory
|
||||
|
||||
Reference in New Issue
Block a user