Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

lstat

Returns file metadata without following symbolic links.

Identical to stat except that if the target is a symbolic link, lstat returns information about the link itself rather than the file it points to. Uses std::fs::symlink_metadata. Returns the same 13-element list as stat, or an empty list on failure.

Synopsis

my @s = lstat($symlink);
my ($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size,
    $atime, $mtime, $ctime, $blksize, $blocks) = lstat($path);
lstat _;               # reuse last stat buffer

See Also

stat, readlink, symlink