Allow duplicate directory additions.

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9071 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2006-08-09 04:44:55 +00:00
parent f3e51ec854
commit 697ea4fa0f

View File

@@ -413,9 +413,9 @@ append_folder (CameraFilesystem *fs, const char *folder, GPContext *context)
if (!strcmp (fs->folder[x].name, folder))
break;
if (x < fs->count) {
gp_context_error (context, _("Could not append folder '%s' "
"as this folder already exists."), folder);
return (GP_ERROR_DIRECTORY_EXISTS);
gp_log (GP_LOG_DEBUG, "filesys", "Folder %s "
"is duplicated, return OK.", folder);
return (GP_OK);
}
/* Make sure the parent exist. If not, create it. */