Image files/directories

class contree_sdk.sdk.objects.image_fs.ImageDirectory(size, path, uid, gid, mode, mtime, nlink, symlink_to, is_dir, is_regular, is_socket, is_fifo, is_symlink, owner, group, _image, _path)[source]
async ls(path='')[source]
Return type:

list[ImageFile | ImageDirectory]

property full_path: Path
property is_file
property name: str
is_dir: Literal[True]
size: int
path: str
uid: int
gid: int
mode: int
mtime: int
is_regular: bool
is_socket: bool
is_fifo: bool
owner: str
group: str
class contree_sdk.sdk.objects.image_fs.ImageDirectorySync(size, path, uid, gid, mode, mtime, nlink, symlink_to, is_dir, is_regular, is_socket, is_fifo, is_symlink, owner, group, _image, _path)[source]
ls(path='')[source]
Return type:

list[ImageFileSync | ImageDirectorySync]

property full_path: Path
property is_file
property name: str
is_dir: Literal[True]
size: int
path: str
uid: int
gid: int
mode: int
mtime: int
is_regular: bool
is_socket: bool
is_fifo: bool
owner: str
group: str
class contree_sdk.sdk.objects.image_fs.ImageFile(size, path, uid, gid, mode, mtime, nlink, symlink_to, is_dir, is_regular, is_socket, is_fifo, is_symlink, owner, group, _image, _path)[source]
async read()[source]
Return type:

bytes

async download(local_path=None)[source]
Return type:

Path

property full_path: Path
property is_file
property name: str
is_dir: Literal[False]
size: int
path: str
uid: int
gid: int
mode: int
mtime: int
is_regular: bool
is_socket: bool
is_fifo: bool
owner: str
group: str
class contree_sdk.sdk.objects.image_fs.ImageFileSync(size, path, uid, gid, mode, mtime, nlink, symlink_to, is_dir, is_regular, is_socket, is_fifo, is_symlink, owner, group, _image, _path)[source]
read()[source]
Return type:

bytes

download(local_path=None)[source]
Return type:

Path

property full_path: Path
property is_file
property name: str
is_dir: Literal[False]
size: int
path: str
uid: int
gid: int
mode: int
mtime: int
is_regular: bool
is_socket: bool
is_fifo: bool
owner: str
group: str