Final changes from icewind1991

This commit is contained in:
Henrik Kjölhede 2013-02-10 13:11:29 +01:00
parent 1df8a5a774
commit 421bacc33a

View file

@ -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() {
@ -56,6 +60,10 @@ class SFTP extends \OC\Files\Storage\Common {
throw new \Exception("Required parameters not set");
}
}
public function getId(){
return 'sftp::' . $this->user . '@' . $this->host . '/' . $this->root;
}
private function abs_path($path) {
return $this->root . $this->cleanPath($path);