Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: How to dete...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 18 Topic 8229 of 8775
Post > Topic >>

Re: How to determine whether or not there exists a directory

by relaxmike <michael.baudin@[EMAIL PROTECTED] > May 14, 2008 at 02:50 AM

In flibs, I tried another hack.
- Try to go into the directory with platform-specific "cd",
- If it failed, the directory does "probably" not exist,
- If it successed, the directory does "probably" exist.
But that trick does not provides explicit informations for
directory access ("ugorwx" on Unix).

See in the m_vfile module, at line 1655 (vfile_isdirectory_vstring):
http://flibs.cvs.sourceforge.net/flibs/src/filedir/m_vfile.f90?view=3Dmarkup=

It works fine under Windows, but I did not try it under Linux.

Thank you for Steve and Catherine for providing informations
about the inquire extension for directories.

Regards,

Micha=EBl
 




 18 Posts in Topic:
How to determine whether or not there exists a directory
ziven <zuoweizhang@[EM  2008-05-13 02:26:53 
Re: How to determine whether or not there exists a directory
Terence <tbwright@[EMA  2008-05-13 02:42:19 
Re: How to determine whether or not there exists a directory
Steve Lionel <Steve.Li  2008-05-13 09:36:24 
Re: How to determine whether or not there exists a directory
Ron Ford <ron@[EMAIL P  2008-05-13 18:21:49 
Re: How to determine whether or not there exists a directory
glen herrmannsfeldt <g  2008-05-13 16:20:56 
Re: How to determine whether or not there exists a directory
Arjen Markus <arjen.ma  2008-05-13 07:23:39 
Re: How to determine whether or not there exists a directory
Reinhold Bader <Bader@  2008-05-13 16:32:33 
Re: How to determine whether or not there exists a directory
Terence <tbwright@[EMA  2008-05-13 16:40:41 
Re: How to determine whether or not there exists a directory
Ron Ford <ron@[EMAIL P  2008-05-13 21:05:17 
Re: How to determine whether or not there exists a directory
ziven <zuoweizhang@[EM  2008-05-13 18:03:44 
Re: How to determine whether or not there exists a directory
Catherine Rees Lay <ca  2008-05-14 09:39:25 
Re: How to determine whether or not there exists a directory
relaxmike <michael.bau  2008-05-14 02:50:21 
Re: How to determine whether or not there exists a directory
ziven <zuoweizhang@[EM  2008-05-14 07:39:20 
Re: How to determine whether or not there exists a directory
Steve Lionel <Steve.Li  2008-05-14 13:47:54 
Re: How to determine whether or not there exists a directory
"David Jones" &  2008-05-14 16:53:07 
Re: How to determine whether or not there exists a directory
Steve Lionel <Steve.Li  2008-05-14 13:48:37 
Re: How to determine whether or not there exists a directory
Terence <tbwright@[EMA  2008-05-14 21:24:34 
Re: How to determine whether or not there exists a directory
Terence <tbwright@[EMA  2008-05-14 21:32:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 8:44:22 CDT 2008.