projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
10224: Workaround Firefox failure to parse localized dates in metric locales.
[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
if File.exist? path
10
FileUtils.rm_r path
11
end
12
begin
13
Dir.mkdir path
14
rescue Errno::EEXIST
15
end
16
end
17
18
def done
19
Dir[path.join '*'].reject do |f|
20
/\.part$/ =~ f
21
end
22
end
23
end