Announcement

Collapse
No announcement yet.

List files from specified folder

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • List files from specified folder

    You can use below script to get list of files from specified directory,



    import os;
    result=os.listdir('C:\Users\Ross\Downloads')
    print(result);



    Sample output would be,

    Click image for larger version

Name:	filelist.jpg
Views:	1
Size:	17.2 KB
ID:	4647
Working...
X