Files.IsDirectory(string, string = 0) shared Check if a path is a directory. Arguments path string Optional pathId string 0 Returns boolean true if the path is a directory, false otherwise. Examples Files.IsDirectory – Check if a path is a directory.