statements operators functions string methods set methods tuple methods dict methods file methods list methods exceptions exception types comprehensions multidimensionals os lambdas subprocess
Intro to Python

Session 1 Session 2 Session 3 Session 4 Session 5 Session 6 Session 7 Session 8 Session 9




pythonreference.com

search statements, functions, methods, exceptions*

hide categories

os.listdir() list entries (files and dirs) in a directory
os.path.exists() determine whether a filename or path exists
os.path.getsize() return size of a file or directory
os.path.isfile(), os.path.isdir() determine whether entry name or path is a dir or a file
os.path.join() join a string directory name to a string filename
os.walk() traverse a directory tree