예제 #1
0
파일: storage.php 프로젝트: anolisti/apps
 public function file_exists($path)
 {
     $path = $this->stripPath($path);
     if ($path == '') {
         return file_exists($this->path);
     }
     return $this->archive->fileExists($path);
 }
예제 #2
0
파일: archive.php 프로젝트: evanjt/core
 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'));
 }