Thank you for your answer.

I don't see why this would happen, as I'm working on local files with
an administrator account (NT).

> Hello [EMAIL PROTECTED],

> I don't know much about how the NT filesystem, but I _suspect_ this is what's 
>happening:
> To determine if a file exists, REBOL tries to get a filesystem lock on the file or 
>directory (this is happening on Amiga at least, verified with snoopdos). The result 
>of this action
> (success/failure) determines the result of exists?
> AFAIR directory locks are mostly used to read the contents of a directory, so it 
>might be that the user under which the rebol/cgi script is running does not have the 
>required priviledges to do a
> directory-listing.

> Try doing a (print what-dir) and a (list-dir) in the "other" script (ie. not the cgi 
>one).

> Best regards
> Thomas Jensen


> On 13-Jun-00, [EMAIL PROTECTED] wrote:

>> 
>> 
>>> Just a guess, but does the same happen if you add a trailing slash, ie:
>>> print exists? %./
>> 
>> Yes it does.
>> I guess it has to do with file permissions.
>> I'm running NT, the script does some stuff on files but it's local.
>> The rebol script invoked with the do/args is outside of the cgi-bin
>> directory defined in Apache. Is this a problem ? (it runs fine, it
>> just seems oblivious to what local files pertains).
>> 
>> daniel
>> 
>>> On 13-Jun-00, [EMAIL PROTECTED] wrote:
>> 
>>>> 
>>>> Can someone help me with the following :
>>>> 
>>>> Consider this : print exists %.
>>>> 
>>>> In other words, does the current directory exists ? (which has to be always
>>>> true).
>>>> 
>>>> However, when this line is called from a CGI script (it's not part of
>>>> the CGI script itself, but part of a rebol script called with "do/args" from
>>>> the CGI script), it produces "false".
>>>> 
>>>> I'm running Apache.
>>>> 
>>>> daniel


--
[EMAIL PROTECTED]
http://perso.worldonline.fr/mutant



Reply via email to