Hello everyone!

I'm looking for a class in the Java API that can take the complete structure of a directory in itself and that can be passed on sockets, so it can be used on other machines of a network.

Is there someone that can show me an existing class? I think that a File object cannot be used on an another machine for navigating through a directory structure, so I'm looking for another class.

Thank you for your help!