A full-featured download manager.
refactor: show item in folder util
Dr_rOotef2b3a04b243
diff --git a/src/main/utils/index.js b/src/main/utils/index.jsindex f516e57b..374d9b88 100644--- a/src/main/utils/index.js+++ b/src/main/utils/index.js@@ -195,9 +195,10 @@ export function showItemInFolder (fullPath) {return}+ fullPath = resolve(fullPath)access(fullPath, constants.F_OK, (err) => {if (err) {- logger.error(`[Motrix] ${fullPath} ${err ? 'does not exist' : 'exists'}`)+ logger.warn(`[Motrix] ${fullPath} ${err ? 'does not exist' : 'exists'}`)return}diff --git a/src/renderer/utils/native.js b/src/renderer/utils/native.jsindex 4a2aed87..5e17f3fa 100644--- a/src/renderer/utils/native.js+++ b/src/renderer/utils/native.js@@ -14,8 +14,9 @@ export function showItemInFolder (fullPath, { errorMsg }) {return}+ fullPath = resolve(fullPath)access(fullPath, constants.F_OK, (err) => {- console.log(`[Motrix] ${fullPath} ${err ? 'does not exist' : 'exists'}`)+ console.warn(`[Motrix] ${fullPath} ${err ? 'does not exist' : 'exists'}`)if (err && errorMsg) {Message.error(errorMsg)return