Skip to content

About

OwlCore.Storage implementations for SharpCompress

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

Repository files navigation

OwlCore.Storage.SharpCompress

OwlCore.Storage implementations for SharpCompress. Allows you to treat an archive file as a normal folder.

Install

Published releases are available on NuGet. To install, run the following command in the Package Manager Console.

PM> Install-Package OwlCore.Storage.SharpCompress

Or using dotnet

> dotnet add package OwlCore.Storage.SharpCompress

Basic usage

// Can be SystemFile, WindowsStorageFile, OneDriveFile, HttpFile, IpfsFile, FtpFile, StreamFile, etc.
IFile file = new SystemFile("C:\\archive.7z");

// Read supported: rar, 7zip, zip, tar, bzip2, gzip, lzip
var archiveFolder = new ReadOnlyArchiveFolder(file);

// Read/Write supported: zip, tar, bzip2, gzip, lzip
var archiveFolder2 = new ArchiveFolder(file);

await foreach (var item in archiveFolder.GetItemsAsync())
{
    if (item is IFile file)
    {
        // ...   
    }

    if (item is IFolder folder)
    {
        // ...   
    }
}

About

OwlCore.Storage implementations for SharpCompress

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages