most_recent: Find most recent file or folder

Description Usage Arguments Details Value Examples

View source: R/most-recent.R

Description

Searches path provided in the search_path and returns most recent file or directory.

Usage

1
most_recent(search_path, type = c("any", "file", "directory", "symlink"))

Arguments

search_path

A path to search

type

Type of an object to return. Defaults to any, available options correspond to type argument in fs::dir_ls.

Details

The function makes use of the directory listing function available in the fs package - fs::dir_ls and consequently can return any objects that fs::dir_ls can identify.

Value

A path object.

Examples

1

konradedgar/KEmisc documentation built on April 15, 2021, 1:50 p.m.