exists method
Checks if a file or directory exists at the specified path.
Implementation
@override
bool exists(String path) {
try {
final fullPath = resolvePath(path);
return File(fullPath).existsSync() || Directory(fullPath).existsSync();
} catch (e) {
return false;
}
}