projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch '5824-keep-web' into 5824-keep-web-workbench
[arvados.git]
/
apps
/
workbench
/
test
/
helpers
/
download_helper.rb
1
module DownloadHelper
2
module_function
3
4
def path
5
Rails.root.join 'tmp', 'downloads'
6
end
7
8
def clear
9
FileUtils.rm_f path
10
begin
11
Dir.mkdir path
12
rescue Errno::EEXIST
13
end
14
end
15
16
def done
17
Dir[path.join '*'].reject do |f|
18
/\.part$/ =~ f
19
end
20
end
21
end