]> source.dussan.org Git - nextcloud-server.git/commit
Fixed FTP and SMB to use rmdir() when deleting folders
authorVincent Petry <pvince81@owncloud.com>
Fri, 29 Nov 2013 11:58:57 +0000 (12:58 +0100)
committerVincent Petry <pvince81@owncloud.com>
Fri, 29 Nov 2013 12:01:01 +0000 (13:01 +0100)
commitd69243ee5144afeed57f513b0b50f9f2dbcdd36a
treedd96718d8dae5b51423fdc05c8e59b09fdd5dde2
parent41a1a32e5ad19c041e22b20873e769ecfa6aa8c8
Fixed FTP and SMB to use rmdir() when deleting folders

Some storages need to use different calls for deleting files or folders,
usually unlink() and rmdir().

Fixes #4532 (SMB dir deletion)
Fixes #5941 (FTP dir deletion)

Note that the extra is_dir() should be fast because it's read from the
stat cache.
apps/files_external/lib/ftp.php
apps/files_external/lib/smb.php
apps/files_external/lib/streamwrapper.php
tests/lib/files/storage/storage.php