List File and Directories for a Given Path
为给定的路径列表文件和目录
译者:生物统计家园网 机器人LoveR
描述----------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.
注意到一个路径,并返回一个字符串向量路径的文件和目录的名称。目录的名称,将有系统相关的路径分隔符(例如/ UNIX)追加。
用法----------Usage----------
appendSepDir(path)
参数----------Arguments----------
参数:path
path character string specifying the path whose contents are to be listed
path字符串指定的路径,其内容是将上市
值----------Value----------
A character vector containing file and directory names.
包含文件和目录名的一个特征向量。
作者(S)----------Author(s)----------
Jianhua (John) Zhang
参见----------See Also----------
fileBrowser, pickFiles
fileBrowser,pickFiles
举例----------Examples----------
# File names and directory names are not differentiated[文件名和目录名不区分]
list.files()
# Put a separater at the end of directory names[放在一个分隔目录名结束]
appendSepDir(getwd())