stringtables.downloads module
Provides access to the Downloadables stringtable.
-
class
stringtables.downloads.
Downloadables
[source]
Bases: core.AutoUnload
, set
Class used to store downloadables for a script.
-
__init__
()[source]
Add the instance to the downloadables list.
-
add
(item)[source]
Add an item to the downloadables for a script.
Parameters: | item (str) – The path to add to the downloadables. |
-
add_directory
(directory)[source]
Add all files in the given directory to the downloadables.
Parameters: | directory (str) – The directory to add to the downloadables. |
Returns: | Return the number of files that have been added. |
Return type: | int |
-
remove_directory
(directory)[source]
Remove all files in the given directory from the downloadables.
Parameters: | directory (str) – The directory to remove from the downloadables. |