case class FolderContent[ID, FILE, FOLDER](folderID: ID, files: Map[ID, FILE], folders: Map[ID, FOLDER])
A data class that stores the content of a specific folder.
An instances contains the (sub) folders and files contained in the represented folder. They are organized in maps, so that they can be accessed directly by their IDs.
Applies mappings to the content stored in this object. The mapping functions that are defined are invoked on the files and folders, and a new instance is created with the results. Note: The mapping functions must not change the IDs of elements.
Applies mappings to the content stored in this object. The mapping functions that are defined are invoked on the files and folders, and a new instance is created with the results. Note: The mapping functions must not change the IDs of elements.
Applies mappings in parallel to the content stored in this object. This function is analogous to ''mapContent()'', but invocations to mapping functions are wrapped in ''Future'' objects, and therefore run concurrently. The resulting future completes when all mappings are done.
Applies mappings in parallel to the content stored in this object. This function is analogous to ''mapContent()'', but invocations to mapping functions are wrapped in ''Future'' objects, and therefore run concurrently. The resulting future completes when all mappings are done.
Applies mappings in parallel to the content stored in this object that can fail. This function is analogous to ''mapContentParallel()'', but the passed in mapping functions return a ''Try''. Result is a ''Future'' with a tuple that contains a ''FolderContent'' object with all the files and folders that could be mapped successfully, and a list with failures that occurred during mapping.
Applies mappings in parallel to the content stored in this object that can fail. This function is analogous to ''mapContentParallel()'', but the passed in mapping functions return a ''Try''. Result is a ''Future'' with a tuple that contains a ''FolderContent'' object with all the files and folders that could be mapped successfully, and a list with failures that occurred during mapping.