sebaubuntu_libs.libgofile.utils

Functions

copy_content(contents_id, folder_id_dest, token)

Copy one or multiple contents to another folder.

create_folder(parent_folder_id, folder_name, ...)

Create a new folder.

delete_content(contents_id, token)

Delete one or multiple files/folders.

get_account(token)

Get the account details.

get_content(content_id, token)

Get a specific content details.

get_server()

Returns the best server available to receive files.

set_folder_option(token, folder_id, option, ...)

Set an option on a folder.

upload_file(file[, server, token, ...])

Upload one file on a specific server.

sebaubuntu_libs.libgofile.utils.copy_content(contents_id: Iterable[str], folder_id_dest: str, token: str)

Copy one or multiple contents to another folder.

sebaubuntu_libs.libgofile.utils.create_folder(parent_folder_id: str, folder_name: str, token: str)

Create a new folder.

sebaubuntu_libs.libgofile.utils.delete_content(contents_id: Iterable[str], token: str)

Delete one or multiple files/folders.

sebaubuntu_libs.libgofile.utils.get_account(token: str)

Get the account details.

sebaubuntu_libs.libgofile.utils.get_content(content_id: str, token: str)

Get a specific content details.

sebaubuntu_libs.libgofile.utils.get_server() str

Returns the best server available to receive files.

sebaubuntu_libs.libgofile.utils.set_folder_option(token: str, folder_id: str, option: str, value: str)

Set an option on a folder.

sebaubuntu_libs.libgofile.utils.upload_file(file: str | Path | BytesIO, server: str | None = None, token: str | None = None, folder_id: str | None = None, description: str | None = None, password: str | None = None, tags: Iterable[str] | None = None, expire: datetime | None = None)

Upload one file on a specific server.