mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Only call mkdir() if the root folder does not exist for FTP external storage
This commit is contained in:
parent
4c822df28d
commit
48f33be848
1 changed files with 3 additions and 2 deletions
|
|
@ -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('');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue