oldas.folders
Provides a class for loading up the folders.
Folder
dataclass
Folder information class.
Folders
Load the folder list from TheOldReader.
full_id
staticmethod
load
async
classmethod
remove
async
classmethod
Remove the given folder from the server.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Session
|
The API session object. |
required |
|
str | Folder
|
The folder that is to be removed. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
Notes
folder can have or be missing the prefix
Prefix.FOLDER; this method
will handle either case and do the right thing.
rename
async
classmethod
Rename a folder on the server.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Session
|
The API session object. |
required |
|
str | Folder
|
The folder that is to be renamed. |
required |
|
str
|
The new name for the folder. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
Notes
rename_from and rename_to can have or be missing the prefix
Prefix.FOLDER; this method
will handle either case and do the right thing.