Changeset 362

Show
Ignore:
Timestamp:
03/08/08 10:07:53 (4 months ago)
Author:
mrook
Message:

#228 - remove access check, replace exception mesage with something more useful

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/classes/phing/system/io/FileSystem.php

    r353 r362  
    350350        $success = @touch($path, $time); 
    351351        if (!$success) { 
    352             throw new Exception("Could not create directory due to: $php_errormsg"); 
     352            throw new Exception("Could not touch '" . $path . "' due to: $php_errormsg"); 
    353353        } 
    354354    } 
  • branches/2.3/classes/phing/system/io/PhingFile.php

    r353 r362  
    688688        } 
    689689 
    690         // FIXME check if accessible 
    691         $fs = FileSystem::getFileSystem(); 
    692         if ($fs->checkAccess($this, true) !== true) { 
    693             throw new IOException("File::setLastModified(). No write access to file\n"); 
    694         } 
     690        $fs = FileSystem::getFileSystem(); 
    695691        return $fs->setLastModifiedTime($this, $time); 
    696692    }