dirSortedBy: Get listing of full paths to items in folder(s), sorted by...

Description Usage Arguments Value Author(s) See Also

View source: R/dirSortedBy.R

Description

Get listing of full paths to items in folder(s), sorted by choice of item from file.info

Usage

1
dirSortedBy(paths, sortBy = "ctime", recursive = FALSE)

Arguments

paths

set of folders to list

sortBy

character vector; names of one or more columns returned by file.info:

  • size

  • isdir

  • mode

  • mtime

  • ctime

  • atime

  • uid

  • gid

  • uname

  • grname

or these additional names:

  • name - filename, without directory

  • path - full path to file

recursive

boolean; should all items from subfolders also be listed?

Value

a character vector of paths to files, sorted by the specified property. The sorting happens *across* folders, rather than within them.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm

See Also


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.