diff --git a/interfaces/kits/js/src/mod_fs/properties/symlink_core.cpp b/interfaces/kits/js/src/mod_fs/properties/symlink_core.cpp index c447187189726243a8583d8c78502ba800705d53..217f429fd20e7a4e1c8b53fbbfbd3bdb4f067010 100644 --- a/interfaces/kits/js/src/mod_fs/properties/symlink_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/symlink_core.cpp @@ -35,7 +35,7 @@ FsResult SymlinkCore::DoSymlink(const string &target, const string &srcPat HILOGE("Failed to request heap memory."); return FsResult::Error(ENOMEM); } - int ret = uv_fs_symlink(nullptr, symlinkReq.get(), srcPath.c_str(), target.c_str(), 0, nullptr); + int ret = uv_fs_symlink(nullptr, symlinkReq.get(), target.c_str(), srcPath.c_str(), 0, nullptr); if (ret < 0) { HILOGE("Failed to create a link for old path"); return FsResult::Error(ret);