link-info ( path -- info )
Factor documentation > Factor handbook > Input and output > File system meta-data
Prev:file-info ( path -- info )
Next:exists? ( path -- ? )


Vocabulary
io.files.info

Inputs and outputs
patha pathname string
infoa file-info tuple


Word description
Queries the file system for metadata. If path refers to a symbolic link, information about the symbolic link itself is returned. If the file does not exist, an exception is thrown.

See also
file-info

Definition
USING: system ;

IN: io.files.info

HOOK: link-info os ( path -- info )


Methods
USING: io.backend io.files.info io.files.info.unix system
unix.stat ;

M: unix link-info normalize-path link-status stat>file-info ;