Skip to content
Snippets Groups Projects
Commit 421bacc3 authored by hkjolhede's avatar hkjolhede
Browse files

Final changes from icewind1991

parent 1df8a5a7
Branches
No related tags found
No related merge requests found
......@@ -49,6 +49,10 @@ class SFTP extends \OC\Files\Storage\Common {
$host_keys[$this->host] = $current_host_key;
$this->write_host_keys($host_keys);
}
if(!$this->file_exists('')){
$this->mkdir('');
}
}
public function test() {
......@@ -57,6 +61,10 @@ class SFTP extends \OC\Files\Storage\Common {
}
}
public function getId(){
return 'sftp::' . $this->user . '@' . $this->host . '/' . $this->root;
}
private function abs_path($path) {
return $this->root . $this->cleanPath($path);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment