Re: Re: File or directory?
| From: | Ashley Sheridan | Date: | Sat, 15 Aug 2009 09:33:07 +0000 |
| Subject: | Re: Re: File or directory? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296818@lists.php.net to get a copy of this message | ||
On Sat, 2009-08-15 at 09:56 +0200, Ralph Deffke wrote:
> can u upload ur own files ?
> can u create a directory ?
> are u using a ftp client ?
>
> try
>
> ralph_deffke@yahoo.de
>
> "Clancy" <clancy_1@cybec.com.au> wrote in message
> news:kjhc85hpub7drihgappifphcboolt9udmc@4ax.com...
> > I have just got access to a new server, and am playing with
> upload/download procedures. I
> > looked in the root directory, and see several objects which I assume to be
> directories.
> > However I was surprised to find there does not appear to be any command to
> determine if an
> > object is a file or directory, either in PHP FTP or plain FTP. I could
> try to change to
> > them, or download them, but this seems overkill. Am I overlooking
> something obvious?
>
>
>
That answer doesn't seem to quite come close even to answering the op
question.
Have you looked at ftp_rawlist which returns a detailed list of files,
along with their permissions and directory flags? Or you could use
ftp_size to determine the size of a file, which should be nothing for a
directory.
Thanks,
Ash
http://www.ashleysheridan.co.uk