typeDescription property

string get typeDescription

Get the type description of the file or directory

Implementation

string get typeDescription {
  if (this is File) {
    return "File";
  }
  if (this is Directory) {
    return "Directory";
  }
  return "Unknown";
}