lib/carrierwave/storage/ftp.rb in carrierwave-ftp-0.1.0 vs lib/carrierwave/storage/ftp.rb in carrierwave-ftp-0.1.1
- old
+ new
@@ -8,9 +8,13 @@
f = CarrierWave::Storage::FTP::File.new(uploader, self, uploader.store_path)
f.store(file)
f
end
+ def retrieve!(identifier)
+ CarrierWave::Storage::FTP::File.new(uploader, self, uploader.store_path(identifier))
+ end
+
class File
attr_reader :path
def initialize(uploader, base, path)
@uploader, @base, @path = uploader, base, path