From e7b164655d48c56eea9ccdf4bb851d610c4965eb Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 11 Apr 2012 18:52:58 +0200 Subject: [PATCH] list_files and cache in ~u2001/.meta/files --- gearman/list_files | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 gearman/list_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 -- 2.20.1