Merge branch 'master' into 9898-container-lock-api
[arvados.git] / apps / workbench / test / helpers / download_helper.rb
index 21fb4cd4ccaad8b07c3ba0ca898fe0d7df0e37a4..776f0c713ca146b1f297c0ddc70fe833d6602994 100644 (file)
@@ -6,7 +6,9 @@ module DownloadHelper
   end
 
   def clear
-    FileUtils.rm_f path
+    if File.exist? path
+      FileUtils.rm_r path
+    end
     begin
       Dir.mkdir path
     rescue Errno::EEXIST