[tpm] How determine the real directory path
indy at indigostar.com
Sat Apr 28 04:29:44 PDT 2012
I want to copy files from one directory to another where the directory paths are something like:
/a/b/c to /x/y/z
I need to detect if the two directory paths are identical after symbolic links are resolved, in order to skip the file copy.
Using File::Copy::copy sets $! to ‘No such file or directory’
Using cp from a shell prompt gives an error like:
cp: `/a/b/c/foo.txt' and `/x/y/z/foo.txt' are the same file
Anyone have an idea how to resolve this?
IndigoSTAR Software -- www.indigostar.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the toronto-pm