Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync:purge cannot delete .unison.*.tmp directories #174

Open
mike-potter opened this issue Jul 19, 2018 · 0 comments
Open

sync:purge cannot delete .unison.*.tmp directories #174

mike-potter opened this issue Jul 19, 2018 · 0 comments

Comments

@mike-potter
Copy link
Member

It seems that the sync:purge command assumes when deleting .unison.*.tmp that these are plain files. But these can also be directories, which cause errors like:

⚠ Could not remove .unison directories: remove /Users/mpotter/Projects/test_project/.unison.backup.395ca72483ab4f09678f80ab2f9e01b9.unison.tmp: directory not empty

line 261 of project_sync.go references util.RemoveFile. Think it needs to also check for directories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant