Very simple question - am I correct that there is no built in function that could check if file or directory could be created in selected directory ? Because command like File.MakeDir seems not returning any error value... Am I correct ?
And it seems that possible workaround is to try creating new dir (or file) and later check if file was created and if so one have to delete test directory or file...
If I am correct - could functionality of file/directory creation functions be extended - so that they at least return True if file/dir could be created and False if it could not be created ?
And it seems that possible workaround is to try creating new dir (or file) and later check if file was created and if so one have to delete test directory or file...
If I am correct - could functionality of file/directory creation functions be extended - so that they at least return True if file/dir could be created and False if it could not be created ?