dir_clean: Remove all files in a directory.

Description Usage Arguments Value Examples

Description

Remove all files in a directory.

Usage

1
dir.clean(directory)

Arguments

directory

Charachter. A path to directory to be cleaned

Value

Logical. Operation successful or no files in the directory.

Examples

1
2
3
4
tmp.dir <- tempdir()
file.create(paste(tmp.dir,"foo", sep = "/"))
dir.clean(tmp.dir)
dir(tmp.dir)

yapomif documentation built on May 31, 2017, 2:23 a.m.