appendSepDir: List File and Directories for a Given Path

Description Usage Arguments Value Author(s) See Also Examples

View source: R/appendSepDir.R

Description

Takes a path and returns a vector of string with the names of files and directories for the path. The directory names will have a system dependent path separator (e. g. / for Unix) appended.

Usage

1

Arguments

path

path character string specifying the path whose contents are to be listed

Value

A character vector containing file and directory names.

Author(s)

Jianhua (John) Zhang

See Also

fileBrowser, pickFiles

Examples

1
2
3
4
5
# File names and directory names are not differentiated
list.files()

# Put a separater at the end of directory names
appendSepDir(getwd())

tkWidgets documentation built on Nov. 8, 2020, 5:17 p.m.