Learn R Programming

umx (version 1.7.5)

umx_move_file: umx_move_file

Description

move files. On OS X, the function can access the current frontmost Finder window. The file moves are fast and, because you can use regular expressions, powerful

Usage

umx_move_file(baseFolder = NA, findStr = NULL, fileNameList = NA,
  destFolder = NA, test = TRUE, overwrite = FALSE)

Arguments

baseFolder

The folder to search in. If set to "Finder" (and you are on OS X) it will use the current frontmost Finder window. If it is blank, a choose folder dialog will be thrown.

findStr

= regex string select files to move (WARNING: NOT IMPLEMENTED YET)

fileNameList

List of files to move

destFolder

Folder to move files into

test

Boolean determining whether to change the names, or just report on what would have happened

overwrite

Boolean determining whether to overwrite files or not (default = FALSE (safe))

Value

-

See Also

Other File Functions: dl_from_dropbox, umx_make_sql_from_excel, umx_open, umx_rename_file, umx

Examples

Run this code
# NOT RUN {
base = "/Users/tim/Music/iTunes/iTunes Music/"
dest = "/Users/tim/Music/iTunes/iTunes Music/Music/"
umx_move_file(baseFolder = base, fileNameList = toMove, destFolder = dest, test= FALSE)
# }

Run the code above in your browser using DataLab