entityExists function
Returns true is an entity exists.
Implementation
Future<bool> entityExists(FileSystemEntity entity) async {
return (await entity.fs.type(entity.path)) != FileSystemEntityType.notFound;
}
Returns true is an entity exists.
Future<bool> entityExists(FileSystemEntity entity) async {
return (await entity.fs.type(entity.path)) != FileSystemEntityType.notFound;
}