taskbridgeapp.notes.model.notefolder.RemoteNoteFolder

class taskbridgeapp.notes.model.notefolder.RemoteNoteFolder(path, name)

Bases: object

Represents a remote folder for storing notes.

Methods

create

Creates the remote folder by adding a folder to the local filesystem which synchronises to remote.

delete

Delete the remote folder with this object's name.

__init__(path, name)

Create a new remote folder instance. The folder is not actually created until the create() method is called.

Parameters:
  • path (Path) – path where to create remote folder. Must include folder name.

  • name (str) – name of the local folder.

create()

Creates the remote folder by adding a folder to the local filesystem which synchronises to remote.

Return type:

tuple[bool, str]

Returns:

-success (bool) - true if remote folder is successfully created.

-data (str) - error message on failure, or success message.

delete()

Delete the remote folder with this object’s name.

Return type:

tuple[bool, str]

Returns:

-success (bool) - true if remote folder is successfully deleted.

-data (str) - error message on failure, or success message.