getFile method

  1. @override
Future<File> getFile(
  1. String path
)
override

Retrieves a File object for the given path.

Implementation

@override
Future<File> getFile(String path) async {
  // Resolve path first, handle root case if necessary (though getFile on root is unlikely)
  final fullPath = resolvePath(path);
  if (fullPath == rootDirectory) {
    throw FileSystemException("Cannot get root as a file", path);
  }
  return File(fullPath);
}