Changeset 9876

Show
Ignore:
Timestamp:
11/11/08 15:43:19 (2 months ago)
Author:
afz
Message:

in Jaws_Utils::Delete if path not exist return true

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jaws/html/include/Jaws/Utils.php

    r9686 r9876  
    271271    function Delete($path, $dirs_include = true, $self_include = true) 
    272272    { 
    273         if(!file_exists($path)) return false; 
    274         if(is_file($path) || is_link($path)) { 
    275  
     273        if (!file_exists($path)) { 
     274            return true; 
     275        } 
     276 
     277        if (is_file($path) || is_link($path)) { 
    276278            // unlink can't delete read-only files in windows os 
    277279            if (JAWS_OS_WIN) {