Get file s path and file name dirname get the file's dir name. basename get the file's name. Both available on both macos and linux.