Changeset 185

Show
Ignore:
Timestamp:
04/18/07 08:54:12 (2 years ago)
Author:
mrook
Message:

Add calls to "clearstatcache" to empty PHP stat cache (closes issue #69)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/phing/system/io/PhingFile.php

    r123 r185  
    395395     */ 
    396396    function exists() {                 
     397                clearstatcache(); 
    397398        if ($this->isFile()) { 
    398399            return @file_exists($this->path); 
     
    412413     */ 
    413414    function isDirectory() { 
     415                clearstatcache(); 
    414416        $fs = FileSystem::getFileSystem(); 
    415417        if ($fs->checkAccess($this) !== true) { 
     
    430432     */ 
    431433    function isFile() { 
     434                clearstatcache(); 
    432435        //$fs = FileSystem::getFileSystem(); 
    433436        return @is_file($this->path);