deleteFile method

  1. @override
void deleteFile(
  1. String path
)
override

Deletes a file at path if it exists, throwing a FileSystemException otherwise.

Implementation

@override
void deleteFile(String path) {
  _memory.deleteFile(path);

  if (!_inMemoryOnlyFiles.remove(path)) {
    _submitWork(_DeleteFileWorkItem(this, path));
  }
}