umx_move_file | R Documentation |
On OS X, umx_move_file
can access the current front-most Finder window.
The file moves are fast and, because you can use regular expressions, powerful.
umx_move_file(
baseFolder = NA,
regex = NULL,
fileNameList = NA,
destFolder = NA,
test = TRUE,
overwrite = FALSE
)
baseFolder |
The folder to search in. If set to "Finder" (and you are on OS X) it will use the current front-most Finder window. If it is blank, a choose folder dialog will be thrown. |
regex |
string to select files to process within the selected folder. |
fileNameList |
List of files to move. |
destFolder |
Folder to move files to. |
test |
Boolean determining whether to change the names, or just report a dry run. |
overwrite |
Boolean determining whether to overwrite files or not (default = FALSE (safe)). |
None
file.rename()
, regex()
Other File Functions:
dl_from_dropbox()
,
umx_file_load_pseudo()
,
umx_make_sql_from_excel()
,
umx_open()
,
umx_rename_file()
,
umx_write_to_clipboard()
,
umx
## Not run:
base = "~/Desktop/"
dest = "~/Music/iTunes/iTunes Music/Music/"
umx_move_file(baseFolder = base, fileNameList = toMove, destFolder = dest, test= TRUE)
# ============================================================
# = Move all files in downloads ending in ".jpeg" to Desktop =
# ============================================================
umx_move_file(baseFolder = "~/Downloads/", regex=".jpeg",
destFolder = "~/Desktop/", test= TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.