Disk constructor

Disk(
  1. String name,
  2. DiskDriver driver, {
  3. String prefix = '',
  4. bool readOnly = false,
  5. bool protectRoot = false,
  6. Duration? prune,
})

A disk named name over driver, rooted at prefix inside it.

Implementation

Disk(
  this.name,
  this.driver, {
  String prefix = '',
  this.readOnly = false,
  bool protectRoot = false,
  Duration? prune,
}) : prefix = normalizeDiskPath(prefix, disk: name),
     _home = normalizeDiskPath(prefix, disk: name),
     _protectRoot = protectRoot,
     _prune = prune;