Re: [Rd] Bug in file.access on Windows when using network shares

2018-10-24 Thread Tomas Kalibera
Dear Nick, I've updated the implementation of file.access() on Windows to fall back to _waccess() when the security descriptor is not available. It now works on my system with files selected for offline use even when the underlying samba share (on a non-Windows host) becomes unavailable. As I

Re: [Rd] Bug in file.access on Windows when using network shares

2018-07-03 Thread Nick Kennedy
Dear Tomas, Thanks for your email. This can be easily reproduced if there is access to a shared folder. I've reproduced this behaviour on both Windows 7 and Windows 10. Steps to reproduce: 1. Ensure Offline Files is turned on within Windows 2. Using Windows Explorer, browse to a folder shared

Re: [Rd] Bug in file.access on Windows when using network shares

2018-07-03 Thread Tomas Kalibera
Dear Nick, thank you for your report. In general one cannot know reliably in advance whether reading a file will work, if nothing else, there are possible race conditions with other applications and/or the system (e.g. a service may lock the file, move it away temporarily, etc). The only