Skip to content
Snippets Groups Projects
Commit f3784153 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Only call mkdir() if the root folder does not exist for FTP external storage

parent 6b83470c
No related branches found
No related tags found
No related merge requests found
......@@ -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('');
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment