39,21 → 39,25 |
curdir=$(pwd) |
cd -- "$directory" |
curdir2=$(pwd) |
files=$(ls) |
files=$(ls -a) |
for file in $files |
do |
pfile=$curdir2/$file # file including path |
if [ -d "$file" -a ! -L "$file" ] |
if [ $file != ".." -a $file != "." ] |
then |
echo $pfile |
traverse "$file" |
else |
if [ -f $file -o -L $file ] |
if [ -d "$file" -a ! -L "$file" ] |
then |
echo "$pfile" |
echo $pfile |
traverse "$file" |
else |
echo "WARNING: Could not process file $pfile" |
if [ -f $file -o -L $file ] |
then |
echo "$pfile" |
else |
echo "WARNING: Could not process file $pfile" |
fi |
fi |
|
fi |
done |
cd -- "$curdir" |