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

Folders/Files which have been synced and then via pattern ignored can not be deleted #44

Open
spector- opened this issue May 18, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@spector-
Copy link

When you have a sync folder and start syncing and then you mention that its too big and set an ignore pattern this folder is in files present (with some data in it) but this cannot be deleted.
I get the message "The file couldn't be saved because you don't have permission. You don't have permission."

@SimonPickup
Copy link
Member

Does this also happen on other platforms?

@SimonPickup SimonPickup added the bug Something isn't working label Oct 26, 2021
@spector-
Copy link
Author

I found also that the hidden desktop.ini file sets the complete folder to read only.
when you don‘t set an icon on the folder then the permission is correct.

@SimonPickup
Copy link
Member

I found also that the hidden desktop.ini file sets the complete folder to read only. when you don‘t set an icon on the folder then the permission is correct.

Can you please explain this in more detail and raise as a separate issue.

@spector-
Copy link
Author

spector- commented Nov 2, 2021

I think it's one issue because of the security state of the folder it cannot be removed.

I try to explain.

When you set a picture or icon for a folder in windows (right klick - properties) then a hidden file desktop.ini is created with the information in it.
This causes also the ReadOnly Attribute to be set. But in windows you can insert Files and work with this folder without any problems.

You can show these Attributes in PowerShell using:
Get-ChildItem C:\Users<username><pathtosync>\ |Select Name,Attributes

Name Attributes


Folder ReadOnly, Directory

in this Folder cannot be saved in iOS because it is read only.
also it cannot be deleted using the files app.
when ciopying files to a new folder without icon in it everything works fine.

I hope this helps.

@SimonPickup
Copy link
Member

Thanks, very helpful. This seems to be an upstream issue: syncthing/syncthing#3744.

Which leaves this original issue only.

@SimonPickup
Copy link
Member

When you have a sync folder and start syncing and then you mention that its too big and set an ignore pattern this folder is in files present (with some data in it) but this cannot be deleted. I get the message "The file couldn't be saved because you don't have permission. You don't have permission."

This is presumably a side-effect of Syncthing being disabled once your synced stored is too big for the free quota. We have not designed a path out of this other than removing the synced folder and starting again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants