diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-06-21 23:50:58 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-06-21 23:50:58 +0100 |
commit | 05fb9ceef912b5414e37b350eeb120d7394e318f (patch) | |
tree | 1cbad4b2a991d32d9a9d5040c75ff16ee0ae1110 /tests | |
parent | 103f8ca6e8b00e63cf54f32b55c8eff891c631e0 (diff) | |
parent | e15dd783ab86c0c65ec626685d59fff0128f3aca (diff) | |
download | nextcloud-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.php | 7 |
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'); |