DiskConfig.path constructor

DiskConfig.path(
  1. String root, {
  2. String prefix = '',
  3. bool readOnly = false,
  4. Duration? prune,
})

The folder at the absolute path root; Laravel's on-demand disk.

Implementation

factory DiskConfig.path(
  String root, {
  String prefix = '',
  bool readOnly = false,
  Duration? prune,
}) => DiskConfig._(
  createDriver: () => kIsWeb ? MemoryDiskDriver() : LocalDiskDriver.at(root),
  prefix: prefix,
  readOnly: readOnly,
  prune: prune,
);