[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: how to stat a remote dir?
From:       Ilya Konstantinov <kde-devel () future ! galanet ! net>
Date:       2001-08-30 17:10:54
[Download RAW message or body]

On Thu, Aug 30, 2001 at 06:19:11PM +0200, Luis De la Parra Blum wrote:
> but, if "test" is a dir, then the job gives me the
> info of the file test/index.html, (but with the name
> "test").
> It seems like the job asks the web server, and when
> the servers sees that "test" is a dir, it gives the
> info for "test/index.html" as a browser would expect,
> but I need to know if its a dir so that I can
> replicate the site structure.

Atleast in the case of Apache, it redirects you to "http://site/test/"
if you access "http://site/test" and it's a directory (in order not to
create the rediculous situation of opening a directory as a file).
So you can judge by the final URL you're redirected to whether it's a
directory or a file.
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic