Skip to content

Commit

Permalink
helps if everything refers to fileutils
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault committed Feb 27, 2009
1 parent 8980ecd commit ab1e4f7
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -110,8 +110,8 @@ def save_to_storage
if save_attachment?
# TODO: This overwrites the file if it exists, maybe have an allow_overwrite option?
FileUtils.mkdir_p(File.dirname(full_filename))
File.cp(temp_path, full_filename)
File.chmod(attachment_options[:chmod] || 0644, full_filename)
FileUtils.cp(temp_path, full_filename)
FileUtils.chmod(attachment_options[:chmod] || 0644, full_filename)
end
@old_filename = nil
true
Expand Down

0 comments on commit ab1e4f7

Please sign in to comment.