TruePath
TruePath copied to clipboard
Check if a file or directory
There should be a method to check if a path represents an existing file or a directory.
Perhaps something like this?
struct LocalPath
{
// …
// null -> not exists
public FileEntryKind? ReadKind() { … }
}
enum FileEntryKind
{
File,
Directory,
// others: Junction, Symlink?
}