exists_ method
Checks whether the FileSystemEntity exists or not.
Implementation
Future<bool> exists_() {
try {
if (this is File) {
return File(addPrefix(path)).exists();
} else if (this is Directory) {
return Directory(addPrefix(path)).exists();
} else {
return Future.value(false);
}
} catch (exception, stacktrace) {
print(exception.toString());
print(stacktrace.toString());
return Future.value(false);
}
}