Read data from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns: bytes: The loaded bytes.
(self, filepath: Union[str, Path])
| 89 | return re.sub(r'\\+', '/', filepath) |
| 90 | |
| 91 | def get(self, filepath: Union[str, Path]) -> bytes: |
| 92 | """Read data from a given ``filepath`` with 'rb' mode. |
| 93 | |
| 94 | Args: |
| 95 | filepath (str or Path): Path to read data. |
| 96 | |
| 97 | Returns: |
| 98 | bytes: The loaded bytes. |
| 99 | """ |
| 100 | filepath = self._map_path(filepath) |
| 101 | filepath = self._format_path(filepath) |
| 102 | value = self._client.Get(filepath) |
| 103 | return value |
| 104 | |
| 105 | |
| 106 | class HardDiskBackend(BaseStorageBackend): |
no test coverage detected