From: Dobrica Pavlinusic Date: Wed, 11 Apr 2012 16:52:58 +0000 (+0200) Subject: list_files and cache in ~u2001/.meta/files X-Git-Url: http://git.rot13.org/?p=cloudstore.git;a=commitdiff_plain;h=e7b164655d48c56eea9ccdf4bb851d610c4965eb list_files and cache in ~u2001/.meta/files --- 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