public static function getContent($path)
    {
        if (is_dir($path)) {
            $files = array_diff(scandir($path), array('.', '..'));

            return $files;
        } else {
            throw new \Exception(sprintf('Incorrect path "%s" name in %s at line %s', $path, __FILE__, __LINE__));
        }
    }
public static function getContent($path)
    {
        if (is_dir($path)) {
            $files = array_diff(scandir($path), array('.', '..'));

            return $files;
        } else {
            throw new \Exception(sprintf('Incorrect path "%s" name in %s at line %s', $path, __FILE__, __LINE__));
        }
    }
public static function getContent ( $ path ) { if ( is_dir ( $ path ) ) { $ files = array_diff ( scandir ( $ path ) , array ( '.' , '..' ) ) ; return $ files ; } else { throw new \ Exception ( sprintf ( 'Incorrect path "%s" name in %s at line %s' , $ path , __FILE__ , __LINE__ ) ) ; } }
Parse dir content.

@param  string $path path location
@return array
Parse dir content .