[Gambas-user] Creating a directory

Grahame White grahame at ...457...
Mon May 31 13:48:50 CEST 2004


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




More information about the User mailing list