public static function isFile(string $path) : bool
    {
        try {
            return ErrorCatcher::run(static function() use ($path) {
                return is_file($path);
            });
        } catch (\ErrorException $e) {
            throw new IoException('Error checking if ' . $path . ' is a file', 0, $e);
        }
    }
public static function isFile(string $path) : bool
    {
        try {
            return ErrorCatcher::run(static function() use ($path) {
                return is_file($path);
            });
        } catch (\ErrorException $e) {
            throw new IoException('Error checking if ' . $path . ' is a file', 0, $e);
        }
    }
public static function isFile ( string $ path ) : bool { try { return ErrorCatcher :: run ( static function ( ) use ( $ path ) { return is_file ( $ path ) ; } ) ; } catch ( \ ErrorException $ e ) { throw new IoException ( 'Error checking if ' . $ path . ' is a file' , 0 , $ e ) ; } }
Checks whether the path points to a regular file.

@param string $path The file path path.

@return bool

@throws IoException If an error occurs.
Checks whether the path points to a regular file .