mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
eventmanager: auto-create destination folder for renames
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -117,19 +117,13 @@ Create an action named `move to recycle` with the settings you can see in the fo
|
||||
|
||||

|
||||
|
||||
Add another action, named `create move folder`, to create the parent directory for the move destination.
|
||||
|
||||

|
||||
|
||||
Now select `Event rules` and create a rule named `Recycle rule`, select `Filesystem events` as trigger, `pre-delete` as filesystem event and exclude the `/recycle` path.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
As actions, select `create move folder` and `move to recycle` and for both set `Execute sync`.
|
||||
|
||||

|
||||
As actions, select `move to recycle` and set `Execute sync`.
|
||||
|
||||
Done! Try deleting a file, it will be moved to the Recycle Bin.
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 47 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB |
Reference in New Issue
Block a user