module Hasta::LocalFilePath

Resolves the local file path for an S3 URI

Public Class Methods

for(s3_uri) click to toggle source
# File lib/hasta/local_file_path.rb, line 8
def self.for(s3_uri)
  File.expand_path(File.join(Hasta.local_storage_root, s3_uri.bucket, s3_uri.path))
end