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 {
    _metaHandle.readDart(_existsList, FileSystemReadWriteOptions(at: 0));
    return _existsList[type.index];
  }
}