X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gearman%2Flist_files;fp=gearman%2Flist_files;h=ff11c696d933b020cccb68606381325306262df5;hb=f60e030a70afd8803da9daeca58561058a78d232;hp=0000000000000000000000000000000000000000;hpb=4b627f8d69cc090f394910c82c8b2305c6df6328;p=cloudstore.git diff --git a/gearman/list_files b/gearman/list_files new file mode 100755 index 0000000..ff11c69 --- /dev/null +++ b/gearman/list_files @@ -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