Class LibrarySourceKinds
- Namespace
- EncDotNet.S100.Collections.Library
- Assembly
- EncDotNet.S100.Collections.dll
Recognises what kind of Library source a known catalogue or a local path is (#792).
public static class LibrarySourceKinds
- Inheritance
-
LibrarySourceKinds
- Inherited Members
Methods
Classify(string)
What adding path means: a folder with a catalogue
(at its top level or in its S100_ROOT folder) is an exchange set, any other folder is scanned; a collection manifest is
one (by its .s100collection.json name or its format); any
other file is an exchange set (a ZIP or catalogue).
public static LibrarySourceKind Classify(string path)
Parameters
pathstringA local folder or file.
Returns
IsOnline(LibrarySourceKind)
True for the kinds read from an online catalogue or service.
public static bool IsOnline(LibrarySourceKind kind)
Parameters
kindLibrarySourceKindThe kind.
Returns
Of(KnownCatalogueFormat)
The kind a known online catalogue adds as.
public static LibrarySourceKind Of(KnownCatalogueFormat format)
Parameters
formatKnownCatalogueFormatThe catalogue's format.