Handbook
Glossary
wipe ( path -- )
Wipe
Next:
wipe-all ( directory -- )
Vocabulary
wipe
Inputs
path
a pathname string
Outputs
None
Word description
Call either
wipe-file
if the
path
is a file, or
wipe-all
if
path
is a directory.
Definition
USING:
io.files.info
kernel
;
IN:
wipe
:
wipe
( path -- )
dup
file-info
regular-file?
[
wipe-file
]
[
wipe-all
]
if
;