Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
file-info ( path -- info )
Factor documentation
>
Factor handbook
>
Input and output
>
File system meta-data
Next:
link-info ( path -- info )
Vocabulary
io.files.info
Inputs and outputs
path
a pathname string
info
a
file-info
Word description
Queries the file system for metadata. If
path
refers to a symbolic link, it is followed. See the article
File types
for a list of metadata symbols.
Errors
Throws an error if the file does not exist.
See also
link-info
Definition
IN:
io.files.info
TUPLE:
file-info
type size size-on-disk permissions created modified
accessed
;
USING:
system
;
IN:
io.files.info
HOOK:
file-info
os
( path -- info )
Methods
USING:
accessors
io.files.info
io.files.info.unix.private
kernel
math.bitwise
;
M:
file-info
file-mode?
[
permissions>>
]
dip
mask?
;
USING:
io.backend
io.files.info
io.files.info.unix
system
unix.stat
;
M:
unix
file-info
normalize-path
file-status
stat>file-info
;