File::hasWriteAccess()

Hi,

I think for directories, File::hasWriteAccess() should always return true on Windows.

According to MSDN, directories are always writable, but if the read-only flag is set then programs can't remove the directory.

Windows will set the read-only and system attributes for any special directory which displays a custom icon, like My Documents, My Pictures, Desktop, etc… File::hasWriteAccess() returns false for all these folders.

--
Roeland

Thanks, good call. I'll investigate..

It works now, thank you!

--
Roeland