View source: R/dataset-utils.R
walk_files | R Documentation |
List recursively all files ending with a suffix at a given root
walk_files(root, suffix, prefix = FALSE, remove_suffix = FALSE)
root |
(str): Path to directory whose folders need to be listed |
suffix |
(str or tuple): Suffix of the files to match, e.g. '.png' or ('.jpg', '.png'). It uses the Python "str.endswith" method and is passed directly |
prefix |
(bool, optional): If TRUE, prepends the full path to each result, otherwise
only returns the name of the files found (Default: |
remove_suffix |
(bool, optional): If TRUE, removes the suffix to each result defined in suffix,
otherwise will return the result as found (Default: |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.