+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
module DownloadHelper
module_function
end
def clear
- FileUtils.rm_r path
+ if File.exist? path
+ FileUtils.rm_r path
+ end
begin
Dir.mkdir path
rescue Errno::EEXIST