]> source.dussan.org Git - nextcloud-server.git/commit
Call final unlink in trash wrapper's storage
authorVincent Petry <pvince81@owncloud.com>
Wed, 21 Jan 2015 15:29:52 +0000 (16:29 +0100)
committerVincent Petry <pvince81@owncloud.com>
Fri, 23 Jan 2015 11:20:54 +0000 (12:20 +0100)
commit67f1534e0fd7c14e97fe5b17bd92aa2277520604
tree52b863953936295764a52036cebc1162a6507dfd
parent5fb8a4715d6ed34b1d94c5508700f3c488c0f734
Call final unlink in trash wrapper's storage

In the case of cross-storage delete, the files are copied to the trash,
then deleted. The final delete on the source storage would still reach
the trash wrapper.

This fix makes forwards that second call to the wrapped storage to make
the final delete work.

It fixes the issue with remote shares, local shares and external
storage.

Also, it uses a new function "renameRecursive" that renames the files
and preserves the mtimes (like "copy_recursive" did in the past))
apps/files_encryption/tests/trashbin.php
apps/files_trashbin/lib/storage.php
apps/files_trashbin/lib/trashbin.php
apps/files_trashbin/tests/storage.php [new file with mode: 0644]