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

[cmd:rm] to be able to customize the action of to put in the trash #2541

Closed
hardiktailored opened this issue Jun 9, 2018 · 1 comment
Closed
Assignees

Comments

@hardiktailored
Copy link

"Into Trash" removes file/folder from main volume and creates full tree of the path deleted file or folder. And when you remove parent folder after deleting sub folder, it creates another copy of folder and restoring also creates same new folder to the main volume, which is incorrect.

Solution is show only file or folder deleted in Trash volume like Windows and no sub folder or files should be accessible.

I see "toTrash function" in JS that is creating parent directories and paste, so is there any way to override Trash functionality to just create file/folder deleted directly on Trash volume and update elfinder_file table?

I am using this Laravel package: https://github.com/barryvdh/laravel-elfinder

@nao-pon
Copy link
Member

nao-pon commented Jun 10, 2018

@hardiktailored Since elFinder does not have a database as a standard, this behavior is the specification at present. However, I think that it is a good idea to be able to customize the action of to put in the trash, so I will extend the client side of elFinder to be able to that.

Thanks! 👍

@nao-pon nao-pon self-assigned this Jun 10, 2018
@nao-pon nao-pon changed the title Trash should show only file or folder deleted and not the full tree [cmd:rm] to be able to customize the action of to put in the trash Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants