Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to see directory from os module


import pathlib

# define the path
currentDirectory = pathlib.Path('.')

for currentFile in currentDirectory.iterdir():
    print(currentFile)
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #directory #os #module
ADD COMMENT
Topic
Name
5+3 =