onGetEntity method

  1. @override
Future<VEntity?> onGetEntity(
  1. String path
)
override

Implementation

@override
Future<VEntity?> onGetEntity(String path) async {
  if (await FileSystemEntity.isDirectory(getRealPath(path))) {
    return _vfolder(path);
  } else if (await FileSystemEntity.isFile(getRealPath(path))) {
    return _vfile(path);
  } else if (await FileSystemEntity.isLink(getRealPath(path))) {
    return null;
  }
}