search for: nodotfil

Displaying 1 result from an estimated 1 matches for "nodotfil".

Did you mean: nodotfile
2011 Sep 23
1
should dir(all=TRUE) return "." and ".."?
...directory safer, as unlink(recursive=TRUE, dir(all=TRUE, "dirToClean")) might start attacking dirToClean/.., then dirToClean/../.., etc., until your disk is empty. > dir.create(tdir <- tempfile("tdir")) > file.create(file.path(tdir, c(".dotFile", "noDotFile"))) [1] TRUE TRUE > dir.create(file.path(tdir, ".dotDir")) > file.create(file.path(tdir, ".dotDir", c("noDotFileInDotDir", ".dotFileInDotDir"))) [1] TRUE TRUE > dir(tdir, all=TRUE) # omit "." and ".." here? [1] &...