[Gambas-user] Creating a directory
    Grahame White 
    grahame at ...457...
       
    Mon May 31 16:07:39 CEST 2004
    
    
  
On Monday 31 May 2004 12:48, Grahame White wrote:
> Currently I have a section of code something like this
>
> dim path as string
>
> path = "/home/" & application.user & "/.gbdir"
>
> if exist(path) then
> 	' do stuff
> else
> 	mkdir path
> endif
>
>
> So basically is the directory there, if not make it.
>
> However all I'm getting is a file/directory doesn't exist error message
> popping up. Well duh of course it doesn't that's why I'm trying to
> create it :/
>
> Any ideas?
>
> Grahame
Nevermind, me making typos again. *sigh*
"/home/" & application.user & "./gbdir" instead of
"/home/" & application.user & "/.gbdir"
Grahame
    
    
More information about the User
mailing list