Handbook
Glossary
wipe-file ( file-name -- )
Wipe
Prev:
wipe-all ( directory -- )
Next:
wipe-free-space ( path -- )
Vocabulary
wipe
Inputs
file-name
a filename string
Outputs
None
Word description
Wipe the
file-name
by overwriting its contents with random data and then deleting it.
Definition
USING:
io.directories
kernel
;
IN:
wipe
:
wipe-file
( file-name -- )
[
overwrite-with-random-bytes
]
[
make-file-empty
]
[
delete-file
]
tri
;