tkWidgets (version 1.50.0)

appendSepDir: List File and Directories for a Given Path

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

appendSepDir(path)

Arguments

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

Value

A character vector containing file and directory names.

See Also

fileBrowser, pickFiles

Examples

Run this code
# File names and directory names are not differentiated
list.files()

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

Run the code above in your browser using DataLab