Just two pennies: Can't you just say if the path is to an existing dir, it's a dir, else it's a file or an error. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20121203/0001a046/attachment.html>