public static function slashDirname($dirname = null)
    {
        if (is_null($dirname) || empty($dirname)) {
            return '';
        }
        return rtrim($dirname, '/ '.DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
    }