Displaying 1 result from an estimated 1 matches for "symlinktofile".
Did you mean:
symlink_file
2016 May 25
0
odd warning unlinking symlink on Windows
...an remove the symbolic link, without any warnings, if it is in
a directory that I remove with unlink(recursive=TRUE):
dir.create(tdir <- tempfile(fileext=".dir"))
file.create(tfile <- file.path(tdir, "file"))
#[1] TRUE
file.symlink(tfile, tlink <- file.path(tdir, "symlinkToFile"))
#[1] TRUE
dir(tdir)
#[1] "file" "symlinkToFile"
print(unlink(tdir, recursive=TRUE))
#[1] 0
file.exists(tdir)
#[1] FALSE
file.exists(tlink)
#[1] FALSE
(I didn't know symlinks were even possible on Windows, but they are in
Windows 7. Sys.readlink() does not...