create method

  1. @override
void create(
  1. String path,
  2. {bool recursive = false,
  3. EntityType type = EntityType.file}
)
override

Implementation

@override
void create(
  String path, {
  bool recursive = false,
  EntityType type = EntityType.file,
}) {
  var (fs, rPath) = getFileSystemAndRelativePathByPath(path);
  if (fs != null && rPath != null) {
    return fs.create(rPath, recursive: recursive, type: type);
  }
  throw "[Disk]: FileSystems don't mount.";
}