[Gambas-user] Creating a directory

Benoit Minisini gambas at ...1...
Mon May 31 13:56:26 CEST 2004


On Monday 31 May 2004 13: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
>

You must be more precise if you want any help.

Which error number did you get ? Which line raises the error ? Which code did 
you write in "'do stuff" ? What is the value of Application.User ? And so 
on...

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list