Answers for "read all file names in phython"

0

list directory in python

from os import listdir

## Prints the current directory as a list (including file types)
print(os.listdir())
Posted by: Guest on April-23-2020
0

how to make all my files to work together in python

>>> import os
>>> entries = os.listdir('my_directory/')
Posted by: Guest on September-03-2020

Code answers related to "read all file names in phython"

Python Answers by Framework

Browse Popular Code Answers by Language