Added isDir() and getPath() methods