From 716e5aa6c5149962f29e5e06406c7e89b34b64cd Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Sat, 7 Sep 2024 15:26:19 +0800 Subject: [PATCH] not detect chars in name for now --- pro/src/sync.ts | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/pro/src/sync.ts b/pro/src/sync.ts index 27b9d51..c6f9800 100644 --- a/pro/src/sync.ts +++ b/pro/src/sync.ts @@ -256,12 +256,14 @@ const ensembleMixedEnties = async ( continue; } - const checkValidNameResult = checkValidName(key); - if (!checkValidNameResult.result) { - throw Error( - `your remote folder/file name is invalid: ${checkValidNameResult.reason}` - ); - } + // 20240907: users (not on windows) doesn't like it. revert back now. + // TODO: platform specific but not introducing obsidian dependency into sync.ts + // const checkValidNameResult = checkValidName(key); + // if (!checkValidNameResult.result) { + // throw Error( + // `your remote folder/file name is invalid: ${checkValidNameResult.reason}` + // ); + // } finalMappings[key] = { key: key, @@ -334,12 +336,14 @@ const ensembleMixedEnties = async ( continue; } - const checkValidNameResult = checkValidName(key); - if (!checkValidNameResult.result) { - throw Error( - `your local folder/file name is invalid: ${checkValidNameResult.reason}` - ); - } + // 20240907: users (not on windows) doesn't like it. revert back now. + // TODO: platform specific but not introducing obsidian dependency into sync.ts + // const checkValidNameResult = checkValidName(key); + // if (!checkValidNameResult.result) { + // throw Error( + // `your local folder/file name is invalid: ${checkValidNameResult.reason}` + // ); + // } // TODO: abstraction leaking? const localCopied = await fsEncrypt.encryptEntity(