in reply to Re: Finding out whether two directories are the same
in thread Finding out whether two directories are the same
Thanks for filling in those details, Corion. Now I can just skip to the crazy ideas:
my $rand= md5_hash_hex( rand() . $$ . $x . "super secret" ); mkdir( "$x/$rand" ); if( -d "$y/$rand" ) { warn "$x == $y\n"; } rmdir( "$x/$rand" );
I only created a subdirectory instead of a file because it makes for more concise Perl code. Or you could lock a file you find in $x and see if you hold the lock on that file in $y? (But that assumes that all of your file system exporting technologies convey lock information, which is not always the case, of course.) You could create a pipe in one... etc.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Finding out whether two directories are the same (insert)
by rovf (Priest) on Aug 28, 2008 at 09:44 UTC | |
by oko1 (Deacon) on Aug 28, 2008 at 13:54 UTC | |
by linuxer (Curate) on Aug 28, 2008 at 15:09 UTC | |
by rovf (Priest) on Aug 29, 2008 at 07:53 UTC |