fromPath static method

Future<ArchiveFetcher?> fromPath(
  1. String path,
  2. {ArchiveFactory archiveFactory = const DefaultArchiveFactory()}
)

Implementation

static Future<ArchiveFetcher?> fromPath(String path,
        {ArchiveFactory archiveFactory = const DefaultArchiveFactory()}) =>
    waitTryOrNull(() async => await archiveFactory
        .open(File(path), null)
        .then((archive) => archive?.let((it) => ArchiveFetcher(it))));