Commit d0266d78 authored by sireesha.k's avatar sireesha.k

committed

parent 9b50bd0d
from datetime import datetime
import os
#gives date in ddmmyyyy format
required_folder=datetime.today().strftime('%d%m%Y')
path = r'E:\files'
# to get a list of all the contents of the directory at path
directory_contents = os.listdir(path)
for folders in directory_contents:
if(required_folder==folders):
#gives the full path of required_folder
full_path=os.path.join(path,folders)
print(full_path)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment