summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-06-21 23:50:58 +0100
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-06-21 23:50:58 +0100
commit05fb9ceef912b5414e37b350eeb120d7394e318f (patch)
tree1cbad4b2a991d32d9a9d5040c75ff16ee0ae1110 /tests
parent103f8ca6e8b00e63cf54f32b55c8eff891c631e0 (diff)
parente15dd783ab86c0c65ec626685d59fff0128f3aca (diff)
downloadnextcloud-server-05fb9ceef912b5414e37b350eeb120d7394e318f.tar.gz
nextcloud-server-05fb9ceef912b5414e37b350eeb120d7394e318f.zip
Merge pull request #17025 from owncloud/sftp-rmdir-emptydir
Workaround for empty dir deletion for SFTP
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/storage/storage.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php
index 2355009c9bf..fcd7f73dcde 100644
--- a/tests/lib/files/storage/storage.php
+++ b/tests/lib/files/storage/storage.php
@@ -380,6 +380,13 @@ abstract class Storage extends \Test\TestCase {
$this->assertFalse($this->instance->file_exists('folder'));
}
+ public function testRmdirEmptyFolder() {
+ $this->assertTrue($this->instance->mkdir('empty'));
+ $this->wait();
+ $this->assertTrue($this->instance->rmdir('empty'));
+ $this->assertFalse($this->instance->file_exists('empty'));
+ }
+
public function testRecursiveUnlink() {
$this->instance->mkdir('folder');
$this->instance->mkdir('folder/bar');