FileSystemRegistry

A registry for file systems.

Each file system is identified by its URI scheme. For example, the platform file system (if any) is identified by the URI scheme file.

This class is safe for use by multiple concurrent threads.

See also

Properties

Link copied to clipboard

The registered platform file system, or null if none is registered.

Functions

Link copied to clipboard
fun addFileSystem(fileSystem: FileSystem)

Add a file system to this registry.

Link copied to clipboard

Get a registered file system for a URI scheme, or null if none is registered for the URI scheme.

Link copied to clipboard

Get a mapping of all the registered file systems, keyed by their URI schemes.

Link copied to clipboard

Remove a registered file system for a URI scheme.

Link copied to clipboard

Get a registered file system for a URI scheme, or throw an exception if none is registered.

Link copied to clipboard

Get the registered platform file system, or throw an exception if none is registered.