nextcloud / files_lock

GNU Affero General Public License v3.0
24 stars 8 forks source link

Lock on folders #96

Open Elleven1 opened 1 year ago

Elleven1 commented 1 year ago

Locking folders is supported by the OCC backend, but not by the user's frontend. A locked folder, which had been locked via the backend, is not shown as locked in the frontend. Also the --status comand is providing an error in case the queried file ID is a folder, which is currently locked:

Error: Call to undefined method OCA\FilesLock\Model\FileLock::getCreation() in /www/htdocs/xxx/cloud/apps/files_lock/lib/Command/Lock.php:171

Looks like locking folders is more a side effect than an implemented feature. Nevertheless, I would like to suggest implementing this feature instead of disabling these side effects. Especially in case of using Groupfolders app, this feature would be very helpfull for Admins to protect folders against moving folders elsewhere accidently via the Windows Nextcloud client.