ps_fs_stat {ps} | R Documentation |
File status
Description
This function is currently not implemented on Windows.
Usage
ps_fs_stat(paths, follow = TRUE)
Arguments
paths |
Paths to files, directories, devices, etc. They must
exist. They are expanded using |
follow |
Whether to follow symbolic links. If |
Value
Data frame with one row for each path in paths
. Columns:
-
path
: Expandedpaths
. -
dev_major
: Major device ID of the device the path resides on. -
dev_minor
: Minor device ID of the device the path resodes on. -
inode
: Inode number. -
mode
: File type and mode (permissions). It is easier to use thetype
andpermissions
columns. -
type
: File type, character. One of regular file, directory, character device, block device, FIFO, symbolic link, socket. -
permissions
: Permissions, numeric code in an integer column. -
nlink
: Number of hard links. -
uid
: User id of owner. -
gid
: Group id of owner. -
rdev_major
: If the path is a device, its major device id, otherwiseNA_integer_
. -
rdev_minor
: IF the path is a device, its minor device id, otherwiseNA_integer_
. -
size
: File size in bytes. -
block_size
: Block size for filesystem I/O. -
blocks
: Number of 512B blocks allocated. -
access_time
: Time of last access. -
modification_time
: Time of last modification. -
change_time
: Time of last status change.
Examples
ps_fs_stat(c(".", tempdir()))