I am trying to create a little FTP client within the TG@ environment
and i need to find out if a current path is a dir or file. I can list
everything within a given path like


ftp.cwd("webapps/editor/Xinha/plugins/ExtendedFileManager/files/")

            entries = ftp.nlst()
            entries.sort()
            print "%d entries:" % len(entries)
            for entry in entries:
                print entry


but i need to find out if entry is a folder. How can i do this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to