How to prevent accidentally moving folders?

Hi everyone, the following happens (too) frequently in our organization:
Some user, usually accidentally, moves a folder in the nextcloud root from say “Folder A” into “Folder B”. Both folders are shared by someone else (admin) to this and many other users.
Most often this accident happens simply due to a click with the mouse + moving the mouse slightly to above or below + releasing the mouse, or doing a similar gesture on the touch screen, thus moving the folder in the folder above it.
More often that not, this goes unnoticed for days by this user.

Currently the result in Nextcloud is then: the “Folder B” gets added to “Folder A” (not sure if other users see it then). And (for sure) the user does no longer see “Folder B” in the root.
Nextcloud does not try to recreate “Folder B”. It simply sees the move, in the log somewhere there may be a MOVE forbidden response from the server, but the tray icon and status stays green in Windows Nextcloud, as if nothing is wrong.

What I would prefer is that the user would not be able to move/delete shared folders in the nextcloud root. Of course, (s)he should be freely to be able to move stuff inside the folder but not the main folders in the nextcloud root itself.

Is this possible? Does this functionality already exist?
If so, would it be worth pointing out this functionality more to existing users/admins? I presume what we are seeing at our high school must be a common situation.

2 Likes

I have the same problem.
Happened this week with a 360GB folder and 15 users affected by this move.

A checkbox in the sharing option should be : Forbidden to delete or moving the new subfolders row - but allow deletion of files.

1 Like

Hi, excellent question, we have the same problem, and for organizations, this seems to be a critical feature that should be implemented in a way or another. Thank you all for the amazing work.

Perhaps something for the files_accesscontrol app?

@sz4 did you find a solution for this problem in the meantime? I have the same need. I couldn’t find a solution yet, neither with Group folders app nor with files access control app. Thanks in advance for any hint!

Same problem, user move folder shared and many users affected

i got a similar problem and tested many different things (NC 27.1.2),
after i got deeper in NC, i build a simple solution for it, perhaps also for your usecase interesting.

you can look at another thread concerning the problem: shared-disable-move-copy-option

if it is still needed, just let me know it - some feedback would be nice - thx

1 Like

Hi,
I would be very much interested in such a feature. Personaly I would remove “accidentally” from the thread subject as “accidentaly” is just one use case … Of course having that feature to prevent moving files or folders would be a big plus in an enterprise environment where this can (no will) happen, but I also have a few cases where I want to prevent people from moving a file out of a specific shared folder (that should remain as is for the next 100 years to come) …
Ideally I should be able to apply the “no-move” to a file or to the folder (even to Group Folders).
I read @GoWeasel solution which unfortunately is broken after almost all NC updates which make it difficult to use in an enterprise environment, but it seems a very good approach (many thanks to him for exploring this !).
I don’t know if there is a place where I could suggest or push for that feature …

If you have an enterprise subscription, you have an official support help line, that would probably be the most efficient way.

From the linked topic, there is a related github issue with just 3 thumbs up for the moment: