Hi, Im currently working on a script that logs into an ftp server and manipulates files by type. The problem I've run into is how can I track/manipulate an arbitrary number of sub directories while tracking the location of every parent dir. I can gather a list of subdirectories of any current directory but i need an acurate tracking to make sure every directory is searched. Should I use some sort of stack counter or recursive function? Aaron.