Skip to content
Snippets Groups Projects
Commit 48f33be8 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 4c822df2
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.
Please register or to comment