Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

clean up the fap :)

  • Loading branch information...
commit 317c4e8fc0f39447b90942a280123249f0c12285 1 parent a86a624
@technoweenie authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/attachment_fu.rb
View
6 lib/attachment_fu.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.