Strange behaviour with inquire function

Andrew Pinski pinskia@gmail.com
Wed Jan 27 13:59:00 GMT 2010



Sent from my iPhone

On Jan 27, 2010, at 5:53 AM, Jerry DeLisle <jvdelisle@verizon.net>  
wrote:

> On 01/27/2010 05:37 AM, pellegrini wrote:
>> Hi Denis and Tobias,
>>
>> thank you for your reply. Indeed, I was a little bit fuzzy in my
>> previous mail.
>>
>> In fact, the "failure" occurs at runtime in the sense that the EXIST
>> output argument is False when I expected it to be True
>> for an existing directory. The version of gfortran I use is 4.5.0  
>> and I
>> downloaded it from the gofrtran website. I use it on cmd
>> environment. I think that I understood your explication Tobias, but  
>> why:
>>
>> inquire(file = '\\MYDIR', exist = exist) gives False
>>
>> while
>>
>> inquire(file='Y:\MYDIR', exist = exist), where Y is the drive letter
>> mapped to the network directory, gives True ?
>>
> I don't recall the \\ for root in Windows being valid.  I will have  
> to check that some time.

I forgot what it is called but it is used such that you don't need to  
map in network drives. I know cmd.exe cannot handle those paths so we  
might be using an API that does not handle them either.

>
> Jerry



More information about the Fortran mailing list