示例#1
0
文件: Path.php 项目: phootwork/file
 private function init($pathname)
 {
     $this->pathname = $pathname instanceof Text ? $pathname : new Text($pathname);
     $this->segments = $this->pathname->split('/');
     $this->extension = pathinfo($this->pathname, PATHINFO_EXTENSION);
     $this->filename = basename($this->pathname);
     $this->dirname = dirname($this->pathname);
 }