vis4d.data.io.file¶
Standard backend for local files on a hard drive.
This backends loads data from and saves data to the local hard drive.
Classes
Raw file from hard disk data backend. |
- class FileBackend[source]¶
Raw file from hard disk data backend.
- exists(filepath)[source]¶
Check if filepath exists.
- Parameters:
filepath (str) – Path to file.
- Returns:
True if file exists, False otherwise.
- Return type:
bool
- get(filepath)[source]¶
Get file content as bytes.
- Parameters:
filepath (str) – Path to file.
- Raises:
FileNotFoundError – If filepath does not exist.
- Returns:
File content as bytes.
- Return type:
bytes
- isfile(filepath)[source]¶
Check if filepath is a file.
- Parameters:
filepath (str) – Path to file.
- Returns:
True if file exists, False otherwise.
- Return type:
bool