function joininigpaths() { $f = FsObject::get(base::appPath()); $p1 = $f->joinPath('foo/bar'); $p2 = $f->joinPath(array('foo', 'bar')); $this->assertEquals($p1, $p2); }
public function checkAgainst($path) { $f = FsObject::get($path); if ($this->getSize() + $f->getSize() > $this->_limit) { return false; } return true; }
/** * Retrieve an array of all files and folders. (as FsObject objects) * */ public function getListing() { $result = array(); foreach (new DirectoryIterator($this->getAbsolute()) as $p) { if (!$p->isDot()) { $result[] = FsObject::get($p->getPathname()); return $result; } } return $result; }