Dir returns all but the last element of path, typically the path's directory.
Join joins any number of path elements into a single path, separating them with slash.
Split splits path immediately following the final Separator, separating it into a directory and file name component.