public function dirList($path){
        if (is_dir($path)){
            $folder = opendir($path);
            while($file = readdir($folder)){
                if ($file == '.' || $file == '..') continue;
                $rtn[]   = $file;
            }
            closedir($folder);
        }

        return $rtn;
    }