Mon Jul 06 15:07:41 2009: Request 47574 was acted upon. Transaction: Correspondence added by j...@activestate.com Queue: Win32-File Subject: RE: [rt.cpan.org #47574] Broken in: 0.06 Severity: Critical Owner: Nobody Requestors: xrmb-m...@gmx.net Status: open Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=47574 >
On Sun, 05 Jul 2009, Bill Luebkert wrote: > > I'm using active state perl 5.10.1004, and when I try to use > > SetAttributes to set the compress flag I get a true return value > > (indicating ok?), but the file is not compressed. > > I'd call it a lack of documentation - Set doesn't allow COMPRESS. The SetFileAttributes() function in Windows indeed doesn't support it, but that doesn't mean that the Win32::SetFileAttributes() one can't. We could just implement it behind the scenes and have it work transparently instead of expecting the user to learn about and use another module to do this. The question then becomes: what is the complete set of missing functionality and can we implement it all using the existing interface? For example, setting the COMPRESSED attribute on a directory will not automatically compress all files stored in it. It will only cause *new* files added to the directory to be compressed. Therefore, would we also need an interface to actually compress/uncompress a whole directory tree? If yes, does this belong into Win32::File, and how should the interface look like? Cheers, -Jan