Opens a directory
path is the path to the directory you want to open.
Returns the name of the next directory.
Resets the directory.
Closes the directory.
Changes current directory.
dir is the directory you want to change to.
Tells you whether it's a directory or not.
Tells you whether it's a file or not.