File system

Parent directory

Also known as: “the directory above”.

The parent of any directory has the special name .. (two dots).

This is useful because you can include it in file paths without needing to explicitly know the name of the parent.

The path to the file notes.txt in the parent directory is:

../notes.txt

You can apply this more than once. The path to the file average.py in a directory three directories above your current directory is:

../../../average.py