{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/19140","labels_url":"https://api.github.com/repos/owncloud/core/issues/19140/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/19140/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/19140/events","html_url":"https://github.com/owncloud/core/issues/19140","id":107027361,"number":19140,"title":"Consolidate deleted files in deleted folders","user":{"login":"Armada651","id":2028870,"avatar_url":"https://avatars.githubusercontent.com/u/2028870?v=3","gravatar_id":"","url":"https://api.github.com/users/Armada651","html_url":"https://github.com/Armada651","followers_url":"https://api.github.com/users/Armada651/followers","following_url":"https://api.github.com/users/Armada651/following{/other_user}","gists_url":"https://api.github.com/users/Armada651/gists{/gist_id}","starred_url":"https://api.github.com/users/Armada651/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Armada651/subscriptions","organizations_url":"https://api.github.com/users/Armada651/orgs","repos_url":"https://api.github.com/users/Armada651/repos","events_url":"https://api.github.com/users/Armada651/events{/privacy}","received_events_url":"https://api.github.com/users/Armada651/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-17T16:56:17Z","updated_at":"2015-09-18T09:27:23Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Delete a folder full of files.\r\n2. Open the deleted files tab.\r\n3. Attempt to restore folder with contents.\r\n\r\n### Expected behaviour\r\nThe deleted folder should be shown and restoring it should restore all contents, perhaps we could even open the deleted folder to show the deleted files inside. These files should not be shown individually and instead we should see the folder structure being retained.\r\n\r\n### Actual behaviour\r\nThe folder and all its files are shown individually and have to be restored individually, this is a near impossible task without restoring all deleted files currently retained. The list becomes huge and it's impossible to restore files that were deleted before the folder was deleted.\r\n\r\n### Server configuration\r\n**Operating system**: Ubuntu Server 14.04\r\n\r\n**Web server:** Apache\r\n\r\n**Database:** MySQL\r\n\r\n**PHP version:** 5.5.9-1ubuntu4.11\r\n\r\n**ownCloud version:**  8.1.0 (stable)\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nUpdated from OC7\r\n\r\n**List of activated apps:**\r\nEnabled:\r\n - activity: 2.0.1\r\n - files: 1.1.9\r\n - files_locking:\r\n - files_pdfviewer: 0.7\r\n - files_sharing: 0.6.2\r\n - files_texteditor: 0.4\r\n - files_trashbin: 0.6.3\r\n - files_videoviewer: 0.1.3\r\n - firstrunwizard: 1.1\r\n - gallery: 0.6.0\r\n - provisioning_api: 0.2\r\n - templateeditor: 0.1\r\n\r\nDisabled:\r\n - calendar\r\n - contacts\r\n - encryption\r\n - external\r\n - files_external\r\n - files_versions\r\n - user_external\r\n - user_ldap\r\n - user_webdavauth\r\n\r\n**The content of config/config.php:**\r\nN/A\r\n\r\n**Are you using external storage, if yes which one:** no\r\n\r\n**Are you using encryption:** no\r\n\r\n**Are you using an external user-backend, if yes which one:** no\r\n\r\n### Client configuration\r\n**Browser:** Firefox\r\n\r\n**Operating system:** Windows 7\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/141396618","html_url":"https://github.com/owncloud/core/issues/19140#issuecomment-141396618","issue_url":"https://api.github.com/repos/owncloud/core/issues/19140","id":141396618,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T09:27:22Z","updated_at":"2015-09-18T09:27:22Z","body":"@Armada651 deleting folders should already keep the folder structure and make it possible to restore that structure by restoring the deleted folder.\r\n\r\nHow was the deletion done ? Was it using the sync client or any specific Webdav client ?\r\nThe correct way of deleting through Webdav is sending a DELETE on the folder and not deleting every file inside."}}