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

Description Usage Arguments Value Author(s) See Also

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/motus-R-package documentation built on May 18, 2019, 7:03 p.m.