Answer the question
In order to leave comments, you need to log in
How to create a folder with current date and further use?
I create a folder like this
import os
os.mkdir(now.strftime("%d-%m-%Y %H-%M"))
with open("Result/ТУТ ПУТЬ ДО СОЗДАННОЙ ПАПКИ/1.txt", 'a') as e:
if not path.exists('results'):
mkdir('results')
unix = str(strftime('[%d-%m-%Y %H-%M-%S]'))
folder = f'results/{unix}'
if not path.exists(folder):
mkdir(folder)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question