Subject Re: path test
From Charlie <tm@tc.com>
Date Thu, 22 Apr 2021 17:44:04 -0400
Newsgroups dbase.getting-started

Thanks Mervyn...

One other question...   if using fileex you find out the directory doesn't exist and you would like to make the directory..  You would have to md C:\dbase first then md c:\dbase\test.  This would be easy doing it manually, but say you wanted to program this separating the string somehow before the second "\"  So somehow c:\dbase would be made then c:\dbase\test would be made.  Would fileex help with this or is there some other way you could do it?  Hope I explained this correctly.

Thanks

Mervyn Bick Wrote:

> On 2021/04/22 11:18, Charlie wrote:
> > Is there a way of testing to see if a path exists?  Only the path which may be empty.
> >
> > Check to see if 'c:\dbase\test'   not 'c:\dbase\test\something.prg'
>
> set procedure to :duflp:fileex.cc
> fx = new fileex()
>
>
> ? if fx.isdir('c:\dbase\test')
>
> Mervyn.
>
>
>