in reply to Re: Finding out whether two directories are the same
in thread Finding out whether two directories are the same
You can check the device and inode field of the results of stat for both directories, but that will only work for file systems that follow the idea the inventors originally had.
I guess this means "the usual file systems on Unix and Linux". Do you happen to know to what extent this is fulfilled for networked file systems on Windows?
You can readdir the directories and consider them to be the same if they contain the same files.In my case, this would mean I would have to actually compare the content of the files, because even the sizes could be the same :-(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Finding out whether two directories are the same
by Fletch (Bishop) on Aug 28, 2008 at 13:04 UTC | |
by JavaFan (Canon) on Aug 28, 2008 at 13:24 UTC | |
by rovf (Priest) on Aug 28, 2008 at 13:11 UTC |