Module: Hasta::LocalFilePath

Defined in:
lib/hasta/local_file_path.rb

Overview

Resolves the local file path for an S3 URI

Class Method Summary collapse

Class Method Details

.for(s3_uri) ⇒ Object



8
9
10
# 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