module TransferMore

Defined in:

transfer_more/init.cr
transfer_more/lib/mime_search.cr
transfer_more/lib/purge.cr
transfer_more/lib/storage.cr
transfer_more/lib/time_format.cr
transfer_more/version.cr

Constant Summary

BASE_STORAGE = ENV["TRANSFER_BASE_STORAGE"]? || "/tmp"
HOST_PORT = ENV["TRANSFER_HOST_PORT"]? || "localhost:3000"
SECURE_SIZE = Int32.new(ENV["TRANSFER_SECURE_SIZE"]? || 4)
SSL_ENABLED = ENV["TRANSFER_SSL_ENABLED"]?.to_s.downcase == "true"
STORAGE_DAYS = Int32.new(ENV["TRANSFER_STORAGE_DAYS"]? || 7)
TIME_FORMAT = ENV["TRANSFER_TIME_FORMAT"]? || "%y%m%d%H"
VERSION = "0.5"

Class Method Summary

Class Method Detail

def self.base_url(env) #

[View source]
def self.purge(duration, verbose = true) #

[View source]
def self.purge_dir(dir, verbose = true) #

[View source]
def self.storage(f) #

[View source]