function clearDir()
    {
        $dir = _WWW.$this->patch.$this->id.'/';
        foreach (scandir($dir) as $file) {
            if ($file == '.' || $file == '..') {
                continue;
            }
            unlink($dir.$file);
        }
    }
function clearDir()
    {
        $dir = _WWW.$this->patch.$this->id.'/';
        foreach (scandir($dir) as $file) {
            if ($file == '.' || $file == '..') {
                continue;
            }
            unlink($dir.$file);
        }
    }
function clearDir ( ) { $ dir = _WWW . $ this -> patch . $ this -> id . '/' ; foreach ( scandir ( $ dir ) as $ file ) { if ( $ file == '.' || $ file == '..' ) { continue ; } unlink ( $ dir . $ file ) ; } }
Delete all files in article directory
@return void Clear directory
Delete all files in article directory