semmyk commited on
Commit
f748dfb
·
1 Parent(s): 7f1d2ea

file_utils: debugging file_path

Browse files
Files changed (1) hide show
  1. file_handler/file_utils.py +1 -0
file_handler/file_utils.py CHANGED
@@ -49,6 +49,7 @@ def check_create_file(filename: str, dir_path: Union[str, Path]="logs") -> Path:
49
  dir_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
53
  file_path.touch(exist_ok=True, mode=0o2664) # Creates an empty file if it doesn't exists
54
  #file_dir.touch(mode=0o2644, exist_ok=True) #, parents=True) ##SMY: Note Permission Errno13 - https://stackoverflow.com/a/57454275
 
49
  dir_path.chmod(0)
50
 
51
  file_path = dir_path / filename # Concatenate directory and filename to get full path
52
+ print(f"file_path: {file_path}") ##]debug
53
  if not file_path.exists(): # check if file doesn't exist
54
  file_path.touch(exist_ok=True, mode=0o2664) # Creates an empty file if it doesn't exists
55
  #file_dir.touch(mode=0o2644, exist_ok=True) #, parents=True) ##SMY: Note Permission Errno13 - https://stackoverflow.com/a/57454275