Permalink
Browse files

clean up the fap :)

  • Loading branch information...
1 parent a86a624 commit 317c4e8fc0f39447b90942a280123249f0c12285 @technoweenie committed Mar 19, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/attachment_fu.rb
View
@@ -342,18 +342,18 @@ def check_task_progress(stack)
# the empty asset paths.
def delete_attachment
fp = full_path
- fap = full_attachment_path
+ fa = full_attachment_path
return if fp.blank?
FileUtils.rm fp if File.exist?(fp)
dir_name = File.dirname(fp)
default = %w(. ..)
- while dir_name != fap
+ while dir_name != fa
dir_exists = File.exists?(dir_name)
if !dir_exists || (Dir.entries(dir_name) - default).empty?
FileUtils.rm_rf(dir_name) if dir_exists
dir_name.sub! /\/\w+$/, ''
else
- dir_name = fap
+ dir_name = fa
end
end
end

0 comments on commit 317c4e8

Please sign in to comment.