lib/filbunke/client.rb in filbunke-1.1.7 vs lib/filbunke/client.rb in filbunke-1.1.8
- old
+ new
@@ -150,10 +150,12 @@
file.close
end
end
def delete_file!(file_path)
- ::File.delete(file_path)
+ if ::File.exists?(file_path) then
+ ::File.delete(file_path)
+ end
end
end
end