Skip to content
Browse files

helps if everything refers to fileutils

  • Loading branch information...
1 parent 8980ecd commit ab1e4f7b0b9de85e0c9decf061d2ef5c1dc0feaa @segfault segfault committed Feb 27, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/technoweenie/attachment_fu/backends/file_system_backend.rb
View
4 lib/technoweenie/attachment_fu/backends/file_system_backend.rb
@@ -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

0 comments on commit ab1e4f7

Please sign in to comment.
Something went wrong with that request. Please try again.