<p>How do I get a list of all files (and directories) in a given directory in Python?</p>

You can use
```
```
os.listdir(path)
```
```
For reference and more os functions look here:
Python 2 docs:
https://docs.python.org/2/library/os.html#os.listdir
Python 3 docs:
https://docs.python.org/3/library/os.html#os.listdir