back

stat

Retrieve file status

Overview

  • This module runs the stat command on files or directories.

Form

(stat path)

Arguments

path

The path of the file or directory to stat.

Options

OptionDescription

Examples

Stat a file.

(stat "/etc/resolv.conf")

Test the return value of a stat call for a unix domain socket

(socket? (stat (System/getenv "SSH_AUTH_SOCK")))