0
Answered

cannot move FOLDER to trash

ovidiu 1 month ago updated by Vlad R 1 month ago 2

I read all related threads but most of them dealt with the problem of moving FILES to the trash. 

Here are the facts:


- running filerun via docker

- can delete files to trash

- can permanently delete files

- can permanently delete folders

- cannot delete folders to trash

This sounds like permission problems on the trash folder itself, right?

Permission on .filerun.trash are 770 and the user/group which filerun runs as are the owners of the folders where the trash folder resides.

If I delete .filerun.trash completely and restart the docker container, filerun correctly sets up the trash folder again, so obviously it has the right permissions.

Any hints?

Answer

Answer
Answered

Please see the note next to "$config['path']['trash'] = '/path/with/write/permission/'" on this page: https://docs.filerun.com/advanced_configuration

If your trash folder is on a separate device/partition/file-system, you will probably want to set $config['system']['fm']['use_safe_move'] = true; otherwise you won't be able to delete folders to trash due to a PHP limitation.

Answer
Answered

Please see the note next to "$config['path']['trash'] = '/path/with/write/permission/'" on this page: https://docs.filerun.com/advanced_configuration

If your trash folder is on a separate device/partition/file-system, you will probably want to set $config['system']['fm']['use_safe_move'] = true; otherwise you won't be able to delete folders to trash due to a PHP limitation.

hm, I had not set 

$config['path']['trash'] = '/path/with/write/permission/'; 

so I assumed I didn't need 

$config['system']['fm']['use_safe_move'] = true; 

I just added the use_safe_move option and set it to true, and it fixed my problem, thank you very much.

Thank you very much!