Skip to content

Instantly share code, notes, and snippets.

@akanik
Created March 7, 2019 01:18
Show Gist options
  • Save akanik/94ef12eb1c3dd1fba4e11f77409b8429 to your computer and use it in GitHub Desktop.
Save akanik/94ef12eb1c3dd1fba4e11f77409b8429 to your computer and use it in GitHub Desktop.
#R
filepath <- 'path/to/folder'
file.rename(dir(filepath, full.names = TRUE), tolower(dir(filepath, full.names = TRUE)))
# If your working directory is set to the folder you don't need `full.names = TRUE`
# But it's best to not change your working directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment