924e2dc91902742d8261469f42d68b3462e1c6e7
[cloudstore.git] / gearman / list_files
1 #!/bin/sh
2
3 while read path ; do
4         echo "## list_files [$path]"
5         eval path=$path # expand ~
6         if [ -e $path/.meta/files ] ; then
7                 cat $path/.meta/files
8         else
9                 find -L $path -printf "%y %s %p\n" | tee $path/.meta/files
10         fi
11 done