Inherits: FolderList < ScriptObject

This object provides access to the directory lists in the Folders dialog.

Properties

NameTypeGet/SetBrief
CategoryListCategoryYes/NoThe category of files that this folder list stores.
CountintYes/NoThe number of folders in this folder list.
PathsArray[str]Yes/NoThe path of each folder in this list.

Methods

NameReturnsArguments
Addnonepath : str
index : Variant[int, none]
Disablenonefolder : Variant[str, int]
Enablenonefolder : Variant[str, int]
EnableFilenonefileName : str
enable : Variant[bool, none]
GetIndexVariant[int, none]path : str
GetPathVariant[str, none]index : int
IncludesSubfoldersboolfolders : Variant[str, int]
Removenonefolder : Variant[str, int]

Property Details

Category

Type: ListCategory

The category of files that this folder list stores.


Count

Type: int

The number of folders in this folder list.


Paths

Type: Array[str]

The path of each folder in this list.

Method Details

Add

Add a folder to this list.

Arguments:

  • path : str - The path of the folder.
  • index : Variant[int, none] - The position to add it in the list, defaulting to the end.

Disable

Disable the specified folder.

Arguments:

  • folder : Variant[str, int] - The path of the folder, or the index of it in this list.

Enable

Enable the specified folder.

Arguments:

  • folder : Variant[str, int] - The path of the folder, or the index of it in this list.

EnableFile

Set whether a file should be enabled in all folder categories.

Arguments:

  • fileName : str - The name of the file.
  • enable : Variant[bool, none] - Whether to enable or disable the file - defaults to enabling it.

GetIndex

Get the index of the folder with this path in the list, if it exists.

Returns Variant[int, none].

Arguments:

  • path : str

GetPath

Get the path of the folder at this index of the list, if it exists.

Returns Variant[str, none].

Arguments:

  • index : int

IncludesSubfolders

Get whether a folder has the “Include Subfolders” option enabled.

Returns bool.

Arguments:

  • folders : Variant[str, int]

Remove

Remove a folder to this list.

Arguments:

  • folder : Variant[str, int] - The path of the folder, or the index of it in this list.