File.canWrite() is not reliable. Disable checkWritePermission().