xAccess method

  1. @override
int xAccess(
  1. String path,
  2. int flags
)
override

Check whether a file can be accessed.

Implementation

@override
int xAccess(String path, int flags) {
  final type = _recognizeType(path);
  if (type == null) {
    return _memory.xAccess(path, flags);
  } else {
    final files = _requireFiles();
    return files.exists(type) ? 1 : 0;
  }
}