Lines Matching refs:filename
46 var $filename; variable in File_Archive_Writer_Files
61 function getFilename($filename) argument
63 return $this->basePath.$filename;
100 * @param string $filename The name of the file to open
104 function openFile($filename, $pos = 0) argument
108 $this->handle = fopen($filename, 'r+');
110 $this->filename = $filename;
113 return PEAR::raiseError("Unable to open file $filename");
127 function openFileRemoveBlock($filename, $pos, $blocks) argument
129 $error = $this->openFile($filename, $pos);
137 $read = fopen($filename, 'r');
174 function newFile($filename, $stat = array(), $mime = "application/octet-stream") argument
178 $this->filename = $this->getFilename($filename);
180 $pos = strrpos($this->filename, "/");
182 $error = $this->mkdirr(substr($this->filename, 0, $pos));
187 $this->handle = @fopen($this->filename, "w");
189 return PEAR::raiseError("Unable to write to file $filename");
199 … function newFromTempFile($tmpfile, $filename, $stat = array(), $mime = "application/octet-stream") argument
201 $this->filename = filename;
202 $complete = $this->getFilename($filename);
213 return parent::newFromTempFile($tmpfile, $filename, $stat, $mime);
229 touch($this->filename, $this->stat[9], $this->stat[8]);
231 touch($this->filename, $this->stat[9]);
234 touch($this->filename, time(), $this->stat[8]);
238 chmod($this->filename, $this->stat[2]);
241 chgrp($this->filename, $this->stat[5]);
244 chown($this->filename, $this->stat[4]);