>>> isparent('/a', '/a/b') True >>> isparent('/a/b', '/a') False >>> ischild('/a/b', '/a') True >>> ischild('/a', '/a/b') False Thoughts? Regards, --- Giampaolo http://code.google.com/p/pyftpdlib/ http://code.google.com/p/psutil/