os.path.isdir()
On Wed, Oct 21, 2009 at 9:35 AM, adam <[email protected]> wrote:
>
> 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?
> >
>
--
Michael J. Pedersen
My IM IDs: Jabber/[email protected], ICQ/103345809, AIM/pedermj022171
Yahoo/pedermj2002, MSN/[email protected]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---