Current section
Files
Jump to
Current section
Files
lib/perspective/storage/storage_config.ex
defmodule Perspective.StorageConfig do
use Perspective.Config, Perspective.LocalFileStorage
def path(file_name, subdirectory \\ "") do
app_id = Process.get(:app_id)
Path.join([config(:path), app_id, subdirectory, file_name])
end
end