Welcome Guest, Not a member yet? Register   Sign In
FTP class->list_files() - distingushing between folders and files
#1

[eluser]Stefan :: cleverleap.com[/eluser]
Hi,

I just build web service (www.pagesticky.com) allowing people to edit web pages remotely using CI FTP class. When getting list of files from the FTP I would like to distinguish between folder and file so I can map appropriate functions for it. Does somebody know how to distinguish between folder and file when using FTP->list_files()?

#2

[eluser]CroNiX[/eluser]
list_files() is an alias for ftp_nlist(). There are some solutions in the user comments in the docs to do that.




Theme © iAndrew 2016 - Forum software by © MyBB