X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b907947d2ce1e2fa44b11ebc1c8a2108bc499d95..bc67ce8d098c36e999739a9213b29bb72af6f23d:/apps/workbench/test/helpers/download_helper.rb?ds=inline diff --git a/apps/workbench/test/helpers/download_helper.rb b/apps/workbench/test/helpers/download_helper.rb index 8f387f419b..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_r path + if File.exist? path + FileUtils.rm_r path + end begin Dir.mkdir path rescue Errno::EEXIST