#!/bin/sh

cd $1

num=$2
id=$3
size=$4
type=$5
fs=$6
path=$7
name=$8

if [ ! -f $id/method ]; then
    printf "  "
else
    if [ -f $id/format ]; then
	if [ -f $id/detected_filesystem ]; then
	    if [ "$TERM" = xterm -o "$TERM" = bterm ]; then
		printf " ☠"
	    else
		printf " F"
	    fi
	else
	    if [ "$TERM" = xterm -o "$TERM" = bterm ]; then
		printf " ☺"
	    else
		printf " f"
	    fi
	fi
    else
	if [ "$TERM" = xterm -o "$TERM" = bterm ]; then
	    printf " ☻"
	else
	    printf " K"
	fi
    fi
fi

# Local Variables:
# coding: utf-8
# End:
