Show
Ignore:
Timestamp:
07/20/2008 08:34:36 PM (4 months ago)
Author:
Shadowhand
Message:

Replacing file_exists calls with is_file and is_dir, where possible.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/archive/libraries/Archive.php

    r3163 r3168  
    6262                empty($name) and $name = $path; 
    6363 
    64                 if (file_exists($path) AND is_dir($path)) 
     64                if (is_dir($path)) 
    6565                { 
    6666                        // Force directories to end with a slash 
     
    109109                        throw new Kohana_Exception('archive.directory_unwritable', $directory); 
    110110 
    111                 if (file_exists($filename)) 
     111                if (is_file($filename)) 
    112112                { 
    113113                        // Unable to write to the file