Aludel.Interfaces.Storage.Adapters.Local (aludel v0.7.0)

Copy Markdown View Source

Local filesystem adapter for document storage.

Summary

Functions

Resolves a storage key beneath the configured local root.

Resolves a storage key using an explicit adapter configuration.

Functions

path_for(key)

@spec path_for(String.t()) :: String.t()

Resolves a storage key beneath the configured local root.

Raises ArgumentError if the expanded key would escape the root directory.

path_for(key, config)

@spec path_for(
  String.t(),
  keyword()
) :: String.t()

Resolves a storage key using an explicit adapter configuration.

The :root option defaults to a temporary Aludel directory. Production installations should configure a persistent absolute root.