Spaces:
Sleeping
Sleeping
file_utils: file_path.chmod(0)
Browse files
file_handler/file_utils.py
CHANGED
|
@@ -46,7 +46,7 @@ def check_create_file(filename: str, dir_path: Union[str, Path]="logs") -> Path:
|
|
| 46 |
# `parents=True` creates any missing parent directories.
|
| 47 |
# `exist_ok=True` prevents an error if the directory already exists.
|
| 48 |
dir_path.mkdir(parents=True, exist_ok=True, mode=0o2664) #, mode=0o2644)
|
| 49 |
-
|
| 50 |
|
| 51 |
file_path = dir_path / filename # Concatenate directory and filename to get full path
|
| 52 |
if not file_path.exists(): # check if file doesn't exist
|
|
|
|
| 46 |
# `parents=True` creates any missing parent directories.
|
| 47 |
# `exist_ok=True` prevents an error if the directory already exists.
|
| 48 |
dir_path.mkdir(parents=True, exist_ok=True, mode=0o2664) #, mode=0o2644)
|
| 49 |
+
file_path.chmod(0)
|
| 50 |
|
| 51 |
file_path = dir_path / filename # Concatenate directory and filename to get full path
|
| 52 |
if not file_path.exists(): # check if file doesn't exist
|