[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2605: Magic Folder on Windows: ignore files with hidden or system attributes
Tahoe-LAFS
trac at tahoe-lafs.org
Tue Dec 8 01:26:07 UTC 2015
#2605: Magic Folder on Windows: ignore files with hidden or system attributes
-------------------------------------+-------------------------------------
Reporter: daira | Owner: daira
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: code-frontend- | Version: n/a
magic-folder | Keywords: magic-folder usability
Resolution: | windows
Launchpad Bug: |
-------------------------------------+-------------------------------------
Comment (by daira):
[https://bugs.python.org/issue21719] says that there is no Python 2.7 API
for this. Therefore, a `ctypes` call to either [https://msdn.microsoft.com
/en-us/library/windows/desktop/aa364944.aspx GetFileAttributesW] or
[https://msdn.microsoft.com/en-us/library/windows/desktop/aa364946.aspx
GetFileAttributesEx] is needed. Note that we already `lstat` the file in
`get_pathinfo` before deciding whether to upload it, but I guess that
determining whether it is hidden/system does not need to be atomic with
that, therefore the simpler `GetFileAttributesW` API would be sufficient.
The `ctypes` call should be implemented in `fileutil.py`.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2605#comment:2>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list