From 697ea4fa0f7eec0d1dd51aab774a43e08e030f32 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 9 Aug 2006 04:44:55 +0000 Subject: [PATCH] Allow duplicate directory additions. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9071 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2/gphoto2-filesys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libgphoto2/gphoto2-filesys.c b/libgphoto2/gphoto2-filesys.c index 4b5856635..22749f01d 100644 --- a/libgphoto2/gphoto2-filesys.c +++ b/libgphoto2/gphoto2-filesys.c @@ -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. */