Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fFile.php
r687 r724 Hide Line Numbers 10 10 * @link http://flourishlib.com/fFile 11 11 * 12 * @version 1.0.0b25 12 * @version 1.0.0b26 13 * @changes 1.0.0b26 ::getDirectory(), ::getFilename() and ::getPath() now all work even if the file has been deleted [wb, 2009-10-22] 13 14 * @changes 1.0.0b25 Fixed ::__construct() to throw an fValidationException when the file does not exist [wb, 2009-08-21] 14 15 * @changes 1.0.0b24 Fixed a bug where deleting a file would prevent any future operations in the same script execution on a file or directory with the same path [wb, 2009-08-20] … … 745 746 public function getDirectory() 746 747 { 747 $this->tossIfException();748 749 748 return new fDirectory(fFilesystem::getPathInfo($this->file, 'dirname')); 750 749 } … … 758 757 public function getFilename() 759 758 { 760 $this->tossIfException();761 762 759 // For some reason PHP calls the filename the basename, where filename is the filename minus the extension 763 760 return fFilesystem::getPathInfo($this->file, 'basename'); … … 902 899 public function getPath($translate_to_web_path=FALSE) 903 900 { 904 $this->tossIfException();905 906 901 if ($translate_to_web_path) { 907 902 return fFilesystem::translateToWebPath($this->file);
