Message-ID: <CAF8bMcbfuXMjz89a_VV54ddzxZcgi+_oOdASUyoP9fvFn9qaJQ@mail.gmail.com>
Date: 2014-08-14T22:57:05Z
From: William Dunlap
Subject: identicalFiles(filename1, filename2)?
Is there a function in core R that takes 2 strings and returns TRUE if
they refer to the same file? (If either does not refer to a file, I
think it would be fine if it returned FALSE.)
Compariing inode/device numbers on Unix-like systems and the output of
normalizePath on Windows would probably do it. Comparing files on
non-native file systems can mess things up so perhaps we should not
promise much.
Bill Dunlap
TIBCO Software
wdunlap tibco.com