Skip to contents

This function retrieves file information for the provided paths, allowing an optional argument follow_symlinks to specify whether symbolic links should be followed when obtaining file information. Similar to Python's pathlib.Path.stat() method.

Usage

Path_stat(paths, ..., follow_symlinks = TRUE)

Arguments

paths

A character vector of file paths.

...

Additional arguments to pass to fs::file_info().

follow_symlinks

Logical. If TRUE, follow symbolic links to obtain file information.

Value

A list containing file information for each path.

Examples

if (FALSE) {
Path_stat("file.txt", follow_symlinks = TRUE)
}