Hello Kroppen and welcome to the board.

Please take a look at all the various UDF scripts we have here. There are plenty of file and directory functions available.

UDF Mirror Sites - Sorted List of UDF