mmengine.fileio.get — mmengine 0.10.7 documentation (original) (raw)

Shortcuts

mmengine.fileio.get(filepath, backend_args=None)[source]

Read bytes from a given filepath with ‘rb’ mode.

Parameters:

Returns:

Expected bytes object.

Return type:

bytes

Examples

filepath = '/path/of/file' get(filepath) b'hello world'