Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uploading-files-in-azure-storage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sireesha.k
uploading-files-in-azure-storage
Commits
d0266d78
Commit
d0266d78
authored
May 26, 2021
by
sireesha.k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committed
parent
9b50bd0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
searchfolder.py
searchfolder.py
+13
-0
No files found.
searchfolder.py
0 → 100644
View file @
d0266d78
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment