Handbook
Glossary
?move-file ( from to -- )
Vocabulary
io
.
directories
Inputs
from
a pathname string
to
a pathname string
Outputs
None
Word description
Calls
move-file
if the
from
file exists.
Definition
USING:
io.files
kernel
;
IN:
io.directories
:
?move-file
( from to -- )
over
file-exists?
[
dup
create-parent-directory
move-file
]
[
2drop
]
if
;