#!/bin/bash
uri="https://svzone.de/files/esxi/packages"
port=443

if [ -e "repo.html" ] ; then rm "repo.html"; fi

for d in $(find . -type d | tr -d "./")
do
	echo dir:$d
	echo "dir:$d" >> repo.html
	for f in $(find $d)
	do
		if [ "$d" == "$f" ] ; then continue; fi
		#echo -e "\tfile:$f"
		link="$uri/$f"
		echo "$link"
		echo "link:$link" >> repo.html
	done
	echo
done
