]> 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>
Mon, 2 Dec 2013 10:12:09 +0000 (11:12 +0100)
commit3b18c1bae4fd038c378010e76d4946313f23f2ef
tree494fe145fe218f901ae290b3fe1e2a11e894b34c
parente079d34f5af344e432f0d4aa7f128d02e69336f2
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.

Backport of d69243e
apps/files_external/lib/ftp.php
apps/files_external/lib/smb.php
apps/files_external/lib/streamwrapper.php
tests/lib/files/storage/storage.php