file-info ( path -- info ) (original) (raw)
file-info ( path -- info )
Factor handbook » Input and output » File system metadata
Prev: | file-info-tuple |
---|---|
Next: | link-info ( path -- info ) |
Inputs
path | a pathname string |
---|
Outputs
info | a file-info-tuple |
---|
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, file-info-tuple
Definition
HOOK: file-info os ( path -- info )
Methods
USING: io.backend io.files.info io.files.info.unix system
unix.stat ;
M: unix file-info normalize-path file-status stat>file-info ;