File tree 2 files changed +1
-15
lines changed
2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change 20
20
21
21
logging .info (SLIMER_SCRIPT_STARTING_MESSAGE )
22
22
23
- logger_folder = create_timestamped_directory (SLIMER_SCRIPT_ROOT_APP_PATH )
23
+ logger_folder = create_directory (SLIMER_SCRIPT_ROOT_APP_PATH )
24
24
25
25
try :
26
26
slimer_script ()
Original file line number Diff line number Diff line change @@ -21,20 +21,6 @@ def create_directory(path):
21
21
os .chdir (path )
22
22
23
23
24
- def create_timestamped_directory (path ):
25
- timestamp = time .strftime ("%Y%m%d" ) + "_" + time .strftime ("%H%M%S" )
26
- format_timestamped_subdirectory = path + "/" + timestamp
27
- logging .info ('creating the folder ' + format_timestamped_subdirectory + "..." )
28
- if not os .path .isdir (format_timestamped_subdirectory ):
29
- os .makedirs (format_timestamped_subdirectory )
30
- logging .info ("the folder " + format_timestamped_subdirectory + " was successfully created" )
31
- else :
32
- logging .info ("the folder " + format_timestamped_subdirectory + " already exists, it's ok" )
33
- # Designation of the working directory as current directory
34
- os .chdir (format_timestamped_subdirectory )
35
- return format_timestamped_subdirectory
36
-
37
-
38
24
def create_timestamped_and_named_file_name (file_name , application_name = None ):
39
25
timestamp = time .strftime ("%Y%m%d" ) + "_" + time .strftime ("%H%M%S" )
40
26
format_file_name = timestamp + "_" + application_name + "_" + file_name
You can’t perform that action at this time.
0 commit comments