diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-27 12:32:03 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-27 12:32:03 -0400 |
commit | 48f33be848f027ec5a2a4aa8e2b270e8f7e2ff20 (patch) | |
tree | 37cb4d165742c42d1dbcaf7a26f25012d7269523 /apps | |
parent | 4c822df28d6d0ece03468b4283bef235f9496b9e (diff) | |
download | nextcloud-server-48f33be848f027ec5a2a4aa8e2b270e8f7e2ff20.tar.gz nextcloud-server-48f33be848f027ec5a2a4aa8e2b270e8f7e2ff20.zip |
Only call mkdir() if the root folder does not exist for FTP external storage
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/ftp.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/lib/ftp.php b/apps/files_external/lib/ftp.php index 4d5ae670de5..63f14a28777 100644 --- a/apps/files_external/lib/ftp.php +++ b/apps/files_external/lib/ftp.php @@ -24,9 +24,10 @@ class OC_FileStorage_FTP extends OC_FileStorage_StreamWrapper{ if(!$this->root || $this->root[0]!='/'){ $this->root='/'.$this->root; } - //create the root folder if necesary - mkdir($this->constructUrl('')); + if (!$this->is_dir('')) { + $this->mkdir(''); + } } /** |