コード例 #1
0
ファイル: NativeFS.php プロジェクト: hoge1e3/jslesson
 function appendContent($path, $cont)
 {
     $this->check($path, Permission::WRITE);
     $filename = $this->resolve($path);
     $this->mkdir(PathUtil::up($path));
     $handle = fopen($filename, "a");
     $contents = fwrite($handle, $cont);
     fclose($handle);
 }
コード例 #2
0
ファイル: SFile.php プロジェクト: hoge1e3/jslesson
 public function up()
 {
     return $this->resolve(PathUtil::up($this->path()));
 }