better check of md5sum files
[cloudstore.git] / gearman / list_files
index d4ce693..03fae20 100755 (executable)
@@ -6,7 +6,7 @@ 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.new && mv $path/.meta/files.new $path/.meta/files
+               cd $path && find -L . -printf "%y %s %p\n" | tee $path/.meta/files.new && mv $path/.meta/files.new $path/.meta/files
        fi
        echo `date +%Y-%m-%d.%H:%M:%S`" list_files [$path] END" >&2
 done