? .svn
? 32bit-stat.patch
Index: mm_dir.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/media_mover/contrib/mm_dir/Attic/mm_dir.module,v
retrieving revision 1.1.2.12.2.10
diff -u -p -r1.1.2.12.2.10 mm_dir.module
--- mm_dir.module	18 Jan 2010 04:46:28 -0000	1.1.2.12.2.10
+++ mm_dir.module	14 Feb 2010 18:37:02 -0000
@@ -208,14 +208,14 @@ function mm_dir_harvest ($configuration)
     // check the returned files
     if ($found_files) {
       foreach ($found_files as $file) {
-        $stat = stat($file->filename);
+        $mtime = exec ('stat -c %Y '. escapeshellarg ($file->filename));
         // now we need to see if we have this file in the database. Note that in
         // this instance, we are not checking dates on files vs. the database
         $result = db_fetch_array(db_query('SELECT mmfid, date FROM {media_mover_files} WHERE cid = %d AND harvest_file = "%s"', $configuration['cid'], $file->filename));
   	    if (! $result) {
           // If there's no record of the file in the database, treat it as new.
           $files[] = array('harvest_file' => $file->filename);
-        } elseif ($result['date'] < $stat['mtime']) {
+        } elseif ($result['date'] < $mtime) {
           // Check if the file in the database has changed since it was last harvested.
           // If so, delete the old file and add the new one.
           $oldfile = media_mover_api_file_get($result['mmfid']);
