Sorry, I realized I didn't include any information on the functions I am calling in this function (which are derived from libsmbclient.so). I'll just provide a link to the entire source file for those who want to peruse: http://www.bludgeon.org/~rayvd/samba/pysmb.c Again, the function I am having trouble with is descend() Thanks again.