X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a4acb3ae95b2fc7f4b5f1e174c910a54cc6681da..a1c3389d7fe54a7311609e7f74b5a9b3ea825c94:/apps/workbench/test/helpers/download_helper.rb diff --git a/apps/workbench/test/helpers/download_helper.rb b/apps/workbench/test/helpers/download_helper.rb index 21fb4cd4cc..776f0c713c 100644 --- a/apps/workbench/test/helpers/download_helper.rb +++ b/apps/workbench/test/helpers/download_helper.rb @@ -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