diff --git a/src/misc.ts b/src/misc.ts index ad78ed8..a0faba2 100644 --- a/src/misc.ts +++ b/src/misc.ts @@ -467,6 +467,21 @@ export const isSpecialFolderNameToSkip = ( return true; } } + + // microsoft tmp files... + const p = x.split("/"); + if (p.length > 0) { + const f = p[p.length - 1]; // file name + if (f.startsWith("~$")) { + const suffixList = ["doc", "docx", "ppt", "pptx", "xls", "xlsx"]; + for (const suffix of suffixList) { + if (f.endsWith(`.${suffix}`)) { + return true; + } + } + } + } + return false; };