Folder
file_store_id: strflagged: boolis_symbolic_link: boolname: strpath: strstyle: TypingStyletags: TagListtechnical_info: TechnicalInfoDictuid: strCreate a new Folder
str - ''Add technical information on the resource. Technical info are useful to set additional information on the resource.
TechnicalInfoYou can redefine this method to define custom logic to check this resource. If there is a problem with the resource, return a string that define the error, otherwise return None This method is called on output resources of a task. If there is an error returned, the task will be set to error and next proceses will not be run. It is also call when uploading a resource (usually for files or folder), if there is an error returned, the resource will not be uploaded
OptionalClone the resource to create a new instance with a new id. It copies the RFields.
ResourceTypeCopy the node to the directory and keep the same base name
strstrCopy the file or folder to the destination and rename the base name
strstrCreate a directory inside this folder if it does not exist. Creates intermediate directories if needed.
strPathCreate an empty file inside this folder if it does not exist. Creates intermediate directories if needed.
strPathDelete the sub node (file or folder) at the given path
strbool - TrueEmpty the folder content. This will delete all files and sub folders inside this folder. The folder itself will not be deleted.
boolGet the name of the file or folder without the path
strYou can redefine this method to set a name of the resource. When saving the resource the name will be saved automatically This can be useful to distinguish this resource from another one or to search for the resource
strGet the default style of the resource
TypingStyleGet the id of the resource model in the database. It is provided by the system for input resources of a task.
strGet the name of the resource or the default name if the name is None
strintGet the sub node (file or folder) at the given path as a FSNode
strFSNodeGet the absolute path of the sub node
strstrGet the technical information of the resource
strTechnicalInfoCheck if the sub node exists
strboolThis can be overwritten to perform custom initialization of the resource. This method is called after the init (constructor) of the resource. The values of RFields are set when this method is called.
List the files inside this folder recursively
ListList the files and directories inside this folder (not recursive)
ListList the files and directories absolute path inside this folder (not recursive)
ListRename the sub node (file or folder) at the given path
strstrSet the name of the resource. You can override this method to force a format for the name of the resource.
OptionalReturns the name of the class
bool - Falsebool - Falsebool - FalsestrCopy the style of the resource with the possibility to override some properties. Useful when settings the style for a task based on the resource style.
strTypingIconTypestrTypingIconColorTypingStyleReturns the full name of the class
bool - Falsebool - FalsestrstrVersionGet the human name of the object
strGet the short description of the object
strGet the style of the object
TypingStyleGet the typing name of the object Ex: 'RESOURCE.gws_core.Table'
strTypingNameObjGet all the classes that inherit this class
ListCreate a new temporary folder. The folder will be created in the system temporary directory. If this resource is then saved, it will be moved to the file store.
Folder