Spaces:
Sleeping
Sleeping
file_utils: file_path.chmod(0)
Browse files45 unmodified lines4647484950515245 unmodified lines# `parents=True` creates any missing parent directories.# `exist_ok=True` prevents an error if the directory already exists.dir_path.mkdir(parents=True, exist_ok=True, mode=0o2664) #, mode=0o2644)file_dir.chmod(0)file_path = dir_path / filename # Concatenate directory and filename to get full pathif not file_path.exists(): # check if file doesn't exist45 unmodified lines4647484950515245 unmodified lines# `parents=True` creates any missing parent directories.# `exist_ok=True` prevents an error if the directory already exists.dir_path.mkdir(parents=True, exist_ok=True, mode=0o2664) #, mode=0o2644)file_path.chmod(0)file_path = dir_path / filename # Concatenate directory and filename to get full pathif not file_path.exists(): # check if file doesn't exist
file_handler/file_utils.py+1-1