芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/cloud.pulsehost.co.uk/vendor/afterlogic/dav/lib/DAV/FS/File.php
storage = $storage; parent::__construct($path); } public function get($bRedirectToUrl = false) { return parent::get(); } public function getDirectory() { list($dir) = \Sabre\Uri\split($this->path); return new Directory($this->storage, $dir); } public function delete() { $result = parent::delete(); $this->deleteShares(); $this->deleteResourceData(); $this->deleteHistoryDirectory(); return $result; } public function getUrl($bWithContentDisposition = false) { return null; } public function patch($data, $rangeType, $offset = null) { switch ($rangeType) { case 0: $f = fopen($this->path, 'w'); break; case 1: $f = fopen($this->path, 'a'); break; case 2: $f = fopen($this->path, 'c'); fseek($f, $offset); break; case 3: $f = fopen($this->path, 'c'); fseek($f, $offset, SEEK_END); break; } if (is_string($data)) { fwrite($f, $data); } else { stream_copy_to_stream($data, $f); } fclose($f); clearstatcache(true, $this->path); return $this->getETag(); } }