diff -r 30a4b721cffd -r 31c3d5f142c1 file.cpp --- a/file.cpp Wed Mar 15 13:53:53 2006 +0000 +++ b/file.cpp Mon May 08 13:26:08 2006 +0000 @@ -44,9 +44,10 @@ d=d.right (d.length()-i-1); } + // Now take care of paths where we have to go back first int srcsep=s.contains("/"); int dstsep=d.contains("/"); - if (srcsep >= dstsep ) + if (srcsep <= dstsep ) { // find path to go up first and then back to dst i=1;