What is the rationale behind std.file.setAttributes ?

Martin Nowak code at dawg.eu
Fri Dec 27 20:13:57 PST 2013


On 12/28/2013 05:01 AM, Marco Leise wrote:
> Ok, so there is a compatibility field for the file attributes
> in a .zip file. So a .zip extractor has to version(Windows/Posix)
> anyway to check if the attributes for a given file are
> compatible with the host OS. Couldn't SetFileAttributes and
> chmod be called right there on the spot?

It does in memory extraction, you have to set the attributes after 
writing out the file.
https://github.com/D-Programming-Language/installer/pull/31
https://d.puremagic.com/issues/show_bug.cgi?id=11789
https://github.com/D-Programming-Language/installer/pull/33


More information about the Digitalmars-d mailing list