Skip to content

Commit 99a3572

Browse files
remove useless timestamped directories of project
1 parent a3aaf5a commit 99a3572

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
logging.info(SLIMER_SCRIPT_STARTING_MESSAGE)
2222

23-
logger_folder = create_timestamped_directory(SLIMER_SCRIPT_ROOT_APP_PATH)
23+
logger_folder = create_directory(SLIMER_SCRIPT_ROOT_APP_PATH)
2424

2525
try:
2626
slimer_script()

utilities.py

-14
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,6 @@ def create_directory(path):
2121
os.chdir(path)
2222

2323

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-
3824
def create_timestamped_and_named_file_name(file_name, application_name=None):
3925
timestamp = time.strftime("%Y%m%d") + "_" + time.strftime("%H%M%S")
4026
format_file_name = timestamp + "_" + application_name + "_" + file_name

0 commit comments

Comments
 (0)