Table of Contents

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

path string

A local folder or file.

Returns

LibrarySourceKind

IsOnline(LibrarySourceKind)

True for the kinds read from an online catalogue or service.

public static bool IsOnline(LibrarySourceKind kind)

Parameters

kind LibrarySourceKind

The kind.

Returns

bool

Of(KnownCatalogueFormat)

The kind a known online catalogue adds as.

public static LibrarySourceKind Of(KnownCatalogueFormat format)

Parameters

format KnownCatalogueFormat

The catalogue's format.

Returns

LibrarySourceKind