How exactly can you view the directory structure of a drive? How can you get a listing of files? Basically, I want to know how to write a very simple ls (unix command) or dir (windows command) but how the heck do you do it? I'm sure that there's GUI functions for it, but I want a command line way to do it (I like the command line). Anyone know?