public function getFileList($field = null)
    {
        $dir = $this->getFilePath($field, '');
        if (!file_exists($dir) || !is_dir($dir)) {
            return [];
        }
        return array_diff(scandir($dir), ['.', '..']);
    }
public function getFileList($field = null)
    {
        $dir = $this->getFilePath($field, '');
        if (!file_exists($dir) || !is_dir($dir)) {
            return [];
        }
        return array_diff(scandir($dir), ['.', '..']);
    }
public function getFileList ( $ field = null ) { $ dir = $ this -> getFilePath ( $ field , '' ) ; if ( ! file_exists ( $ dir ) || ! is_dir ( $ dir ) ) { return [ ] ; } return array_diff ( scandir ( $ dir ) , [ '.' , '..' ] ) ; }
All files list for field
@param null $field
@return array
All files list for field