diff --git a/interfaces/innerkits/native/file_uri/src/file_uri.cpp b/interfaces/innerkits/native/file_uri/src/file_uri.cpp index 2973a554aebef8f890ea558f66f686a96ae4185b..0f1ab81762a6e8cfd80593f2c2c65969527cd778 100644 --- a/interfaces/innerkits/native/file_uri/src/file_uri.cpp +++ b/interfaces/innerkits/native/file_uri/src/file_uri.cpp @@ -39,6 +39,7 @@ const std::string MEDIA_AUTHORITY = "media"; const std::string NETWORK_PARA = "?networkid="; const std::string BACKFLASH = "/"; const std::string FULL_MOUNT_ENABLE_PARAMETER = "const.filemanager.full_mount.enable"; + static bool CheckFileManagerFullMountEnable() { char value[] = "false"; @@ -88,7 +89,6 @@ string FileUri::GetRealPath() (access(realPath.c_str(), F_OK) == 0 || CheckFileManagerFullMountEnable())) { return realPath; } - if (((bundleName != "") && (bundleName != CommonFunc::GetSelfBundleName())) || uri_.ToString().find(NETWORK_PARA) != string::npos) { realPath = PATH_SHARE + MODE_RW + bundleName + sandboxPath;