Answers for "python all file names in directory"

12

get files in directory python

import os
files_and_directories = os.listdir("path/to/directory")
Posted by: Guest on June-12-2020
1

get list of files in directory python

import os
path = '/folder1/folder2/'
files = os.listdir(path)
Posted by: Guest on January-20-2021

Code answers related to "python all file names in directory"

Python Answers by Framework

Browse Popular Code Answers by Language