[Mono-list] Tar library for mono - SharpZipLib doesnt preserve attributes/ownership of files

Petit Eric surfzoid at gmail.com
Mon Feb 23 03:12:15 EST 2009


2009/2/19 adrin <adrin84 at gmail.com>:
>
> Hello,
> are there any solutions to create a tar.gz file from a directory under Mono
> other than running system command 'tar'?
> I tried SharpZipLib but it doesnt seem to preserve file attributes (all
> files in created tar file are +x and owned by root regardless of their
> original setting) - i used sharpziplib compiled from source under windows
> (VS2008)... i dont see any code that would handle ownership or attribute
> preservation logic... Anyone knows any details on this?
> --
> View this message in context: http://www.nabble.com/Tar-library-for-mono---SharpZipLib-doesnt-preserve-attributes-ownership-of-files-tp22101501p22101501.html
perhap's try the one include in Mono
at last yu can imagine, a list of file with there attribute, write
that in a text file and embded it in the zip, but i think it should
preserve attrib.
Another way is to folow RPM, by build a CPIO (it is very easy) and gzip the CPIO

> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>



-- 

Cordially.

Small Eric Quotations of the days:
---------------------------------------------------------------------------
If one day one reproaches you that your work is not a work of
professional, say you that:
Amateurs built the arch of Noah, and professionals the Titanic.
---------------------------------------------------------------------------

Few people are done for independence, it is the privilege of the powerful ones.
---------------------------------------------------------------------------

No key was wounded during the drafting of this message.


More information about the Mono-list mailing list