files_move: Moves Files from One Directory to Another Directory

Description Usage Arguments See Also Examples

View source: R/files_move.R

Description

Moves older (defined in alphanumeric order) files from one directory to another directory.

Usage

1
files_move(path1, path2, file_sep = "__", pattern = NULL)

Arguments

path1

Original directory

path2

Target directory in which the files should be moved

file_sep

Separator for files

pattern

Pattern in file names to be searched for

See Also

filename_split

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
#############################################################################
# EXAMPLE 1: Move older files in '__ARCHIVE' directory
#############################################################################	

# specify path
path1 <- "p:/IPN/Projects/PISA/Trend_2015/2__Data/All_Waves/"
# specify target directory which is an archive
path2 <- file.path( path1 , "__ARCHIVE" )
# move files
files_move( path1 , path2 )

## End(Not run)

miceadds documentation built on Aug. 25, 2017, 1:03 a.m.