create static method

Future<VfsWorker> create(
  1. WorkerOptions options
)

Implementation

static Future<VfsWorker> create(WorkerOptions options) async {
  var root = await storageManager!.directory;
  final split = p.url.split(options.root);

  for (final directory in split) {
    root = await root.getDirectory(directory, create: true);
  }

  return VfsWorker._(options, root);
}