Answers for "pyre list all files in a directory"

1

python list all files in directory

import os
 arr = os.listdir()
 print(arr)
 
 >>> ['$RECYCLE.BIN', 'work.txt', '3ebooks.txt', 'documents']
Posted by: Guest on April-15-2021
0

get a list of all files python

import os
lst=os.listdir(directory)
Posted by: Guest on June-30-2021

Code answers related to "pyre list all files in a directory"

Python Answers by Framework

Browse Popular Code Answers by Language