Minor changes to make the creation of files and directories cleaner
This commit is contained in:
@ -128,7 +128,10 @@ OBIDMS_p obi_create_dms(const char* dms_name)
|
||||
if (mkdir(directory_name, 00777) < 0)
|
||||
{
|
||||
if (errno == EEXIST)
|
||||
{
|
||||
obi_set_errno(OBIDMS_EXIST_ERROR);
|
||||
obidebug(1, "\nAn OBIDMS directory with the same name already exists in this directory.");
|
||||
}
|
||||
else
|
||||
obi_set_errno(OBIDMS_UNKNOWN_ERROR);
|
||||
obidebug(1, "\nProblem creating an OBIDMS directory");
|
||||
|
Reference in New Issue
Block a user