Packages

Extensible Elixir OTP Application for storing files through a unified API. Backends currently exist for the local filesystem, SFTP and the Amazon S3 API.

Current section

Files

Jump to
belt test provider filesystem_test.exs
Raw

test/provider/filesystem_test.exs

defmodule Belt.Test.Provider.Filesystem do
use Belt.Test.Provider,
provider: Belt.Provider.Filesystem
setup_all do
dir = create_tmp_dir()
on_exit(fn -> File.rm_rf(dir) end)
{:ok, dir: dir}
end
def config_opts(%{dir: dir}) do
[directory: dir,
base_url: "http://example.com/files/"]
end
end