brendan-duncan/archive

Add `followLinks` option in `zipDirectory` and `addDirectory`

Closed this issue · 3 comments

In some cases, symbolic links are not desired. Please add this param and just pass it to

void addDirectory(Directory dir, {bool includeDirName = true, int? level}) {
List files = dir.listSync(recursive: true);

Zip/tar.. encoders should add this param.

That seems like a good thing to add. Not sure when I'll be able to get to it.

I believe it should be an easy and quick fix to add followLinks in TarFileEncoder.tarDirectory, TarFileEncoder.addDirectory, ZipFileEncoder.zipDirectory and ZipFileEncoder.addDirectory.

If it's okay, I would like to open a pull request.

That would be great, thank you