Minor changes to make the creation of files and directories cleaner

This commit is contained in:
Celine Mercier
2015-11-09 15:22:01 +01:00
parent b37bd8f21c
commit 65c1b1e8b2
2 changed files with 5 additions and 2 deletions

View File

@ -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");