|
Module Dropins/CoreThis module is undocumented. This is a list of its definitions. filterSupportedExtensions :: String -> <Proc> [String] Every file name pattern handled by the import services that also handle the
given one, so getUploadedDropinFiles :: () -> <Proc> [Long] The resource identifiers of the entities imported from dropped files, that is
the values of getUploadedFiles :: () -> <Proc> MMap.T String Long The entities imported from dropped files so far, as a map from the name of the entity to the identifier of its resource. importGenericFile :: String -> <Proc> String Imports the file at the given path with the import service registered for its file name extension, placing the result under that service's default parent. Returns the identifier of the created resource as a string. Fails if the path has no extension or no service handles it. importGenericFileToResource :: String -> String -> <Proc> Resource As importGenericFileToResource2 :: String -> <Proc> Resource As importGenericFileWithExtension :: String -> String -> <Proc> String As importGenericFileWithExtensionAndParent :: Resource -> String -> String -> <Proc> Resource
performFileImport :: String -> String -> <Proc> String
removeFileForId :: Long -> <Proc> () Removes the entity that was imported for the given resource identifier and deletes the file it came from. Does nothing if no dropped file is recorded for the identifier. unwatchDropinsFolder :: () -> <Proc> () Stops the watcher started by uploadToDropinsBase64 :: String -> String -> <Proc> ()
watchDropinsFolder :: () -> <Proc> () Starts watching the workspace dropins folder. A file dropped into the folder is imported by the import service registered for its extension, and deleting a file removes the entity that was imported from it. Calling this again while the watcher runs does nothing. |