Re: How to copy a file on Windows while preserving permissions

2007-04-12 Thread Martin v. Löwis
> Can someone who is more familiar than I with the vagaries of Windows file > protection and the Python interfaces available to it point me in a useful > direction? To copy a file along with its attributes, try SHFileOperation. Alternatively, if you have backup privileges, open the file for bac

How to copy a file on Windows while preserving permissions

2007-04-12 Thread Andrew Koenig
The answer to this question probably involves pywin32 or a similar library. I would like to copy a file from one place to another on a Windows machine while preserving as much of the file permissions as it is possible to preserve with whatever my program's privileges happen to be. If the file i