File Utils
File utilities.
create_write_file_path(dirpath, file_path, write_extension)
Create the file name for the output file.
Takes the original file path, changes the directory to dirpath and changes
the extension to write_extension.
Parameters:
-
dirpath(Path) –The output directory to write file to.
-
file_path(Path) –The original file path.
-
write_extension(str) –The extension that output files should have.
Returns:
-
Path–The output file path.
get_files_size(files)
Get files size in MB.
Parameters:
-
files(list of pathlib.Path) –List of files.
Returns:
-
float–Total size of the files in MB.