From a32113edcde1d28f5bb78581bb75fec23d194f7a Mon Sep 17 00:00:00 2001 From: wangpggg Date: Mon, 21 Aug 2023 15:39:27 +0800 Subject: [PATCH] modify 'External' to 'external', update Uri invoke to FileUri invoke Signed-off-by: wangpeng --- interfaces/common/file_share_sandbox.json | 2 +- interfaces/kits/js/file_share/grant_uri_permission.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/common/file_share_sandbox.json b/interfaces/common/file_share_sandbox.json index 55e9cfc88..7d195ff1d 100644 --- a/interfaces/common/file_share_sandbox.json +++ b/interfaces/common/file_share_sandbox.json @@ -40,7 +40,7 @@ "src-path" : "/mnt/hmdfs//account/merge_view/files/Docs/" }, { "sandbox-path" : "/storage/External/", - "src-path" : "/mnt/data/External/" + "src-path" : "/mnt/data/external/" }, { "sandbox-path" : "/storage/Share/", "src-path" : "/data/service/el1/public/storage_daemon/share/public/" diff --git a/interfaces/kits/js/file_share/grant_uri_permission.cpp b/interfaces/kits/js/file_share/grant_uri_permission.cpp index 783fe7c81..9b464f2ca 100644 --- a/interfaces/kits/js/file_share/grant_uri_permission.cpp +++ b/interfaces/kits/js/file_share/grant_uri_permission.cpp @@ -139,7 +139,7 @@ namespace ModuleFileShare { return -EINVAL; } - int32_t filesType = GetMediaTypeAndApiFromUri(uri.GetPath(), isApi10); + int32_t filesType = GetMediaTypeAndApiFromUri(uri.ToString(), isApi10); valuesBucket.Put(PERMISSION_FILE_ID, fileId); valuesBucket.Put(PERMISSION_BUNDLE_NAME, uriPermInfo.bundleName); valuesBucket.Put(PERMISSION_MODE, uriPermInfo.mode); -- Gitee