-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Labels
bugA problem with current functionality, as opposed to missing functionality (enhancement)A problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionIssues closed and untouched for a long time, together with being locked for discussion
Description
I was syncing some files from a Linux machine to the Windows 8 host, then deleted some of those files again.
The log on the Windows machine turned up these errors:
[GUEL3] 22:27:05 INFO: Puller (folder "Photos", file "2012\\08\\04\\124620.jpeg")
: delete: remove C:\Users\Fred\Photos\2012\08\04\124620.jpeg: access denied
[GUEL3] 22:27:05 INFO: Puller (folder "Photos", file "2012\\08\\04\\124628.jpeg")
: delete: remove C:\Users\Fred\Photos\2012\08\04\124628.jpeg: access denied
[GUEL3] 22:27:05 WARNING: Folder "Photos" isn't making progress - check logs for
possible root cause. Pausing puller for 1m0s.
I could delete those files manually using the Windows explorer, but trying to run del in a cmd window gave an error too:
> del C:\Users\Fred\Photos\2012\08\04\124628.jpeg
C:\Users\Fred\Photos\2012\08\04\124628.jpeg
Access is denied.
Turns out, that on Windows, you cannot simply delete files having the READONLY flag set. See the discussion here: golang/go#9606
Basically, you would have to remove the read-only attribute prior to trying call os.remove.
Metadata
Metadata
Assignees
Labels
bugA problem with current functionality, as opposed to missing functionality (enhancement)A problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionIssues closed and untouched for a long time, together with being locked for discussion