[Unison-hackers] [unison-svn] r301 - trunk/fstest

ALAN SCHMITT schmitta at seas.upenn.edu
Sat Jun 28 10:19:30 EDT 2008


Author: schmitta
Date: 2008-06-28 10:19:29 -0400 (Sat, 28 Jun 2008)
New Revision: 301

Modified:
   trunk/fstest/fstest.m
Log:
Check whether the detected file system change is shallow or deep, and prefix the printed path with '.' if it's shallow, '*' if it's deep.



Modified: trunk/fstest/fstest.m
===================================================================
--- trunk/fstest/fstest.m	2008-06-28 14:01:42 UTC (rev 300)
+++ trunk/fstest/fstest.m	2008-06-28 14:19:29 UTC (rev 301)
@@ -16,7 +16,11 @@
     for (i=0; i<numEvents; i++) {
         /* flags are unsigned long, IDs are uint64_t
         printf("Change %llu in %s, flags %lu\n", eventIds[i], paths[i], eventFlags[i]); */
-		printf("%s\n",paths[i]);
+		if (eventFlags[i] == kFSEventStreamEventFlagMustScanSubDirs) {
+			printf("*%s\n",paths[i]);
+		} else {
+			printf(".%s\n",paths[i]);
+		}
    }
 }
 



More information about the Unison-hackers mailing list