classes/phing/system/io/FileSystem.php
public function canDelete(PhingFile $f)
    {
        clearstatcache();
        $dir = dirname($f->getAbsolutePath());

        return (bool) @is_writable($dir);
    }
public function canDelete(PhingFile $f)
    {
        clearstatcache();
        $dir = dirname($f->getAbsolutePath());

        return (bool) @is_writable($dir);
    }
public function canDelete ( PhingFile $ f ) { clearstatcache ( ) ; $ dir = dirname ( $ f -> getAbsolutePath ( ) ) ; return ( bool ) @ is_writable ( $ dir ) ; }
Whether file can be deleted.

@param  PhingFile $f
@return boolean
Whether file can be deleted .