M Mahares Expert Licensed User Longtime User Nov 10, 2012 #1 I can use any one of these two awkward statements and never get an error, Of course no folder is created and no error is returned. Why so? B4X: File.MakeDir("xyz","abc") File.MakeDir(File.DirRootExternal,"")
I can use any one of these two awkward statements and never get an error, Of course no folder is created and no error is returned. Why so? B4X: File.MakeDir("xyz","abc") File.MakeDir(File.DirRootExternal,"")
Erel B4X founder Staff member Licensed User Longtime User Nov 11, 2012 #2 The second statement is correct. MakeDir can also be called when the path (or part of it) already exists. You can use File.Exists to check whether the folder has been created or not. Upvote 0
The second statement is correct. MakeDir can also be called when the path (or part of it) already exists. You can use File.Exists to check whether the folder has been created or not.