wxFileName:;Mkdir(Filepath,0777,wxPATH_MKDIR_FULL) is not working in LINUX

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Adwaith
Earned a small fee
Earned a small fee
Posts: 20
Joined: Sat Nov 21, 2015 7:01 am

wxFileName:;Mkdir(Filepath,0777,wxPATH_MKDIR_FULL) is not working in LINUX

Post by Adwaith »

Hi,
I'm Trying to make a directory with path(eg:/user01/newpath) by using wxFileName::Mkdir with permission 0777. But the code is not working in some linux systems which has same specifications as like my system. the problem is after creating 'User01' folder it is not creating 'newpath' folder and I observed like "User01" folder has a Lock symbol.

syntax which I used is: wxFileName:;Mkdir(Filepath,0777,wxPATH_MKDIR_FULL) ;

Please, tell is there any function which will work other than mkdir,wxMKDir,wxMKdir(these also have same problem)??

thanks,
DavidHart
Site Admin
Site Admin
Posts: 4254
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: wxFileName:;Mkdir(Filepath,0777,wxPATH_MKDIR_FULL) is not working in LINUX

Post by DavidHart »

Hi,

I've used wxFileName::Mkdir with the wxPATH_MKDIR_FULL flag on several distros without any problems. I wonder if your problem is a lack of permission for the failing filepaths.

I suggest you try doing mkdir -p /user01/newpath on the commandline and see if you get a revealing error message.

Regards,

David
Post Reply