Fixed bugs in update_file() method and create_hdf5_file_from_filesystem_path()

This commit is contained in:
2024-10-03 09:32:25 +02:00
parent 098a79531c
commit 89e9dd9ab1
2 changed files with 7 additions and 6 deletions

View File

@@ -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