dir_files | R Documentation |
Similar to fs::dir_info()
but only files, not sub-directories are included, and with fewer
columns in the output. Unlike fs::dir_info()
, dir
must be length one.
dir_files(dir = ".", ..., shorten = TRUE)
dir |
Character. A single directory path. |
... |
Additional arguments passed to |
shorten |
If |
A data frame with columns as follows.
file_name |
The name of the file, as a character vector. |
ext |
The extension of the file, as a character vector. |
size |
The file size as an fs_bytes vector. |
mod_time |
The date and time when the file was last modified. |
directory |
The directory part of the file path, as a |
level |
The level of the directory relative to |
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.