cterasdk.lib.storage.asynfs module#
- async cterasdk.lib.storage.asynfs.mkdir(p, parents=False, exist_ok=True)#
Create a directory using aiofiles.
- Parameters:
p (str) – The path to create (string or Path object).
parents (bool,optional) – Create a path, including all parent directories
exist_ok (bool,optional) – Suppress error if directory exists
- Returns:
Path
- Return type:
str
- Raises:
FileExistsError – If
exist_okisFalseand directory exists
- async cterasdk.lib.storage.asynfs.overwrite(p, handle)#
Write, without validation.
- Parameters:
p (Path) – Path
handle (bytes) – Handle
- async cterasdk.lib.storage.asynfs.write(directory, name, handle)#
Write bytes to disk.
- Parameters:
directory (str) – Directory
name (str) – Name
handle (bytes) – Handle
- Returns:
Path
- Return type:
str