Skip to content

Commit e1c9de1

Browse files
committed
docs: fix readme.
1 parent 8b60624 commit e1c9de1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Readme.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var options = new CompressionOption
2626
CompressionMethod = CompressionMethod.Lzma,
2727
EncryptionMethod = EncryptionMethod.Aes256,
2828
Password = "password",
29-
Filter = new Filter(files).Match,
29+
Filter = Filter.From(files),
3030
CodePage = CodePage.Utf8,
3131
};
3232

@@ -76,10 +76,7 @@ var password = new Cube.Query<string>(e =>
7676

7777
// Supports only the Filter property
7878
var files = new[] { ".DS_Store", "Thumbs.db", "__MACOSX", "desktop.ini" };
79-
var options = new ArchiveOption
80-
{
81-
Filter = new Filter(files).Match
82-
};
79+
var options = new ArchiveOption { Filter = Filter.From(files) };
8380

8481
using (var reader = new ArchiveReader(@"path\to\archive", password, options))
8582
{

0 commit comments

Comments
 (0)