does folder exist

Post Reply
dtussman
Posts: 78
Joined: Sat Jun 06, 2015 6:57 pm

does folder exist

Post by dtussman »

what's an easy way to check to see if a folder exists
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: does folder exist

Post by cnavarro »

Try with

Code: Select all

      if !hb_DirExists( cFld )
         if hb_vfDirMake( cFld ) == 0
.../...
 
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: does folder exist

Post by nageswaragunupudi »

Code: Select all

? IsDir( cSpec )
 
Regards

G. N. Rao.
Hyderabad, India
dtussman
Posts: 78
Joined: Sat Jun 06, 2015 6:57 pm

Re: does folder exist

Post by dtussman »

thanks everyone
Post Reply