Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > e00f75691700f74a1a61d86cd41b9c86 > files > 15

squirrelsh-doc-1.2.7-11.mga7.armv7hl.rpm

#!/usr/bin/sh

# List directory contents.

if [ -z $1 ]; then
	path=.
else
	path=$1
fi

for file in `ls -a $path`; do
	if [ $file = . ] || [ $file = .. ]; then
		continue
	fi

	pth=$path/$file
	if [ -d $pth ]; then
		echo "dir : $pth"
	elif [ -f $pth ]; then
		echo "file: $pth"
	fi
done