stat method

  1. @override
Stat stat(
  1. String path,
  2. {EntityType type = EntityType.file}
)
override

Returns Stat for Entity.

Implementation

@override
Stat stat(
  String path, {
  EntityType type = EntityType.file,
}) {
  var (fs, rPath) = getFileSystemAndRelativePathByPath(path);
  if (fs != null && rPath != null) {
    return fs.stat(rPath);
  }
  throw "[Disk]: FileSystems don't mount.";
}