[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] File Listings



Ian Mallett wrote:
Hi,
I would like to list all the files in a directory. What should I do to do that?
Most file operations can be handled using the os module.
In this case, you can use the following:
import os
directory_listing = os.listdir("path/to/target/directory")
Ian
-Luke