wxMkdir on Ubuntu
I try to use [wxMkdir](http://docs.wxwidgets.org/2.8/wx_filefunctions.html#wxmkdir) function to create a new directory in my c++ program. The directory 
`/home/test/Documents/MATLAB/mydata/demo` already exists. But the following code

	wxString dataDirectory = wxT("/home/test/Documents/MATLAB/mydata/demo/A");

	if(! wxDirExists(dataDirectory))
	{
		wxMkdir(dataDirectory);	
		
	}
 
will pop up a runtime error dialog saying that 
> Directory '/home/test/Documents/MATLAB/mydata/demo/A' couldn't be created (error2: No such file or directory)

and the directory `A` under directory `demo` will not be created. However, if I change the desired directory to `/home/test/Documents/MATLAB/mydata/A`, everything works. 

So is there a maximum directory depth for [wxMkdir](http://docs.wxwidgets.org/2.8/wx_filefunctions.html#wxmkdir) in the Ubuntu implementation of wxWidgets? This problem is not seen under Mac, however. I searched the web and couldn't get anything meaningful. Anyone has a better idea?


wxMkdir on Ubuntu
===

I try to use [wxMkdir](http://docs.wxwidgets.org/2.8/wx_filefunctions.html#wxmkdir) function to create a new directory in my c++ program. The directory 
`/home/test/Documents/MATLAB/mydata/demo` already exists. But the following code

	wxString dataDirectory = wxT("/home/test/Documents/MATLAB/mydata/demo/A");

	if(! wxDirExists(dataDirectory))
	{
		wxMkdir(dataDirectory);	
		
	}
 
will pop up a runtime error dialog saying that 
> Directory '/home/test/Documents/MATLAB/mydata/demo/A' couldn't be created (error2: No such file or directory)

and the directory `A` under directory `demo` will not be created. However, if I change the desired directory to `/home/test/Documents/MATLAB/mydata/A`, everything works. 

So is there a maximum directory depth for [wxMkdir](http://docs.wxwidgets.org/2.8/wx_filefunctions.html#wxmkdir) in the Ubuntu implementation of wxWidgets? This problem is not seen under Mac, however. I searched the web and couldn't get anything meaningful. Anyone has a better idea?

