Japus 0 Light Poster

Hello

I'm trying to make some kind of a web interface for my server using Ruby and CGI in it. All runs on an Apache2 server.
I can list all the files in a directory but I can't download them.
I list all the files using the Dir[**/*.*] command to put all the filenames in an array. I then use this array to create the links. Everything goes well untill I click on a link, then I get a 404 error to say that the url doesn't exist. But I just got the filename from the directory so I has to exist.

How can I access any file on the drive? Including the ones in parent directories? And also download them to the computer I'm currently working on?

Thanks,

Jasper