Fix bug of removed directory scanning 09/172409/1 accepted/tizen/unified/20180314.062004 submit/tizen/20180314.004401
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 13 Mar 2018 23:42:36 +0000 (08:42 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 13 Mar 2018 23:42:36 +0000 (08:42 +0900)
Change-Id: I33a83dd72f39d86171220f68f5682dcee1624d98
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/media_content.c

index 3f88054..9d2a795 100755 (executable)
@@ -1534,11 +1534,10 @@ int media_content_scan_folder(const char *path, bool is_recursive, media_scan_co
 
        ret = __media_content_check_dir(repl_path);
        media_content_retvm_if(ret == MEDIA_CONTENT_ERROR_PERMISSION_DENIED, ret, "Permission Denied");
-       media_content_retvm_if(ret == MEDIA_CONTENT_ERROR_INVALID_PARAMETER, ret, "invalid path[%s]", repl_path);
 
        if (ret == MEDIA_CONTENT_ERROR_NONE) {
                /* If directory exist check that's ignore directory or not*/
-       ret = _media_util_check_ignore_dir(repl_path, &ignore_dir);
+               ret = _media_util_check_ignore_dir(repl_path, &ignore_dir);
                media_content_retvm_if(ignore_dir == TRUE, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid folder path");
        } else {
                /* This means this folder has to be deleted */