Spaces:
Sleeping
Sleeping
file_utils: fixing file_path.touch
Browse files49 unmodified lines5051525354555657585949 unmodified linesfile_path = dir_path / filename # Concatenate directory and filename to get full pathprint(f"file_path: {file_path}") ##]debugif not file_path.exists(): # check if file doesn't existfile_path.touch(exist_ok=True, mode=0o2664) # Creates an empty file if it doesn't exists#file_dir.touch(mode=0o2644, exist_ok=True) #, parents=True) ##SMY: Note Permission Errno13 - https://stackoverflow.com/a/57454275#file_dir.chmod(0)return file_path49 unmodified lines50515253545556575859606162636449 unmodified linesfile_path = dir_path / filename # Concatenate directory and filename to get full pathprint(f"file_path: {file_path}") ##]debugfile_path.touch(exist_ok=True, mode=0o2664) # Creates an empty file if it doesn't exists'''if not file_path.exists(): # check if file doesn't existfile_path.touch(exist_ok=True, mode=0o2664) # Creates an empty file if it doesn't exists#file_dir.touch(mode=0o2644, exist_ok=True) #, parents=True) ##SMY: Note Permission Errno13 - https://stackoverflow.com/a/57454275#file_dir.chmod(0)'''return file_path
file_handler/file_utils.py+6-1