Merge branch 'master' of git.rot13.org:/git/cloudstore
[cloudstore.git] / gearman / list_files
diff --git a/gearman/list_files b/gearman/list_files
new file mode 100755 (executable)
index 0000000..ff11c69
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+while read path ; do
+       if [ -e $path/.meta/files ] ; then
+               cat $path/.meta/files
+       else
+               find -L $path -printf "%y %s %p\n" | tee $path/.meta/files
+       fi
+done