# File lib/dragonfly/file_data_store.rb, line 95 def write(content, opts={}) relative_path = if opts[:path] opts[:path] else filename = content.name || 'file' relative_path = relative_path_for(filename) end path = absolute(relative_path) until !File.exist?(path) path = disambiguate(path) end content.to_file(path).close meta_store.write(path, content.meta) if store_meta? relative(path) end