RE: [PHP] looking for program/script to diff directories and show dates

From: Date: Wed, 27 Jul 2005 20:26:01 +0000
Subject: RE: [PHP] looking for program/script to diff directories and show dates
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-219456@lists.php.net to get a copy of this message
I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with a more intuitive interface?
What's wrong with "diff -r --brief dir1 dir2" That's about as intuitive as you can get, no?
Well to answer your question, no. It could get a lot more intuitive than that. For one, I don't know which file was updated last (ok, well, *I* know when, but not anyone else that might come later, or for that matter me in 6 mths.)
Ah... good point. I'd assumed that dir1 would always be newer than dir2 (ie. that you only make changes in dir1). You could combine the output of the diff command though to loop through and grab timestamps. there might be an option to diff to just show timestamps, not the actual diffs too... not sure though

« previous php.general (#219456) next »