It's possible if the web server shows a directory listing, you can write a client which parses the HTML (the directory listing) and outputs its like you want.
Its near to impossible if the server doesn't show the directory listing and/or every directory has it's own index/default page.
The download manager Flash Get, does what you want to a considerable extent. Try it out to get some idea. You can get it here.