class
ProjectLibraryCreateFolderOperation
Inherits:
ProjectLibraryOperation
Project library operation that creates a folder at the specified location.
Note the operation will fail if a package with the same name exists at the destination.
Public
Constructors
ProjectLibraryCreateFolderOperation
ProjectLibraryCreateFolderOperation(const ProjectLibraryOperationContext &context, const Path &folderRelativePath)
Constructs the operation.
- context
- Project library context the operation is being executed in.
- folderRelativePath
- Path to the folder to create, relative to the project library imported resources folder.
Methods
PrepareOnMainThread
Result PrepareOnMainThread() override
Performs the first stage of the operation.
Verifies the input parameters are correct, creates library database entries (if possible) and returns success if operation will proceed to execute. Executed on the main thread.
Returns: Operation result and optional error message if failed.
RunOnWorkerThread
void RunOnWorkerThread() override
Performs the second stage of the operation.
Performs longer lasting tasks such as saving or loading a package, copying a file or generating preview icons. Executed on a worker thread.
Private
Fields
mFolderRelativePath
Path mFolderRelativePath