public function file_exists($path) { $path = $this->stripPath($path); if ($path == '') { return file_exists($this->path); } return $this->archive->fileExists($path); }
public function testRecursive() { $dir = OC::$SERVERROOT . '/tests/data'; $this->instance = $this->getNew(); $this->instance->addRecursive('/dir', $dir); $this->assertTrue($this->instance->fileExists('/dir/lorem.txt')); $this->assertTrue($this->instance->fileExists('/dir/data.zip')); $this->assertTrue($this->instance->fileExists('/dir/data.tar.gz')); }