fix(fs_actions): clear buffers when trashing#2036
Conversation
|
on a side note: the |
|
I genuinely forgot to put this in when adapting the delete code lol so ty, I agree that this should be the expected behavior.
Currently, trash.trash returns false upon any failure, partial or total. so yeah, stat'ing the files in a loop is currently the intended solution this is also why the undostack and post-trash event code are still ran in the multi node variant - if trash trashed any files at all, it should add something to the undostack and fire some amount of events. in the single node variant I just assume that if the trash failed, there's no need to check further (but maybe i'm wrong on that?)
Yeah there probably should be some, tbh. Currently the supported trash backends that just use system commands will just log the output of the commands as warnings if they return non-zero error codes, but having more output wouldn't hurt in the case of these partial failures. Will merge in a bit |
delete does this so i thought trash should do too?
not super sure about
stating files in a loop for thetrash_nodesvariant but my thoughts were if some individual files failed to be trashed (there doesn't seem to be any communication of partial-failures i believe)?