Handbook
Glossary
download-outdated-as ( url path duration -- path' )
HTTP Download Utilities
Prev:
download-outdated-into ( url directory duration -- path )
Next:
download-to-temporary-file ( obj -- path )
Vocabulary
http
.
download
Inputs
url
an
url
path
a pathname string
duration
a
duration
Outputs
path'
a pathname string
Word description
Download a URL into a directory unless the an existing file has a timestamp newer than
duration
ago.
Definition
USING:
kernel
;
IN:
http.download
:
download-outdated-as
( url path duration -- path' )
2dup
delete-when-old
[
drop
download-as
]
[
drop
nip
]
if
;