Commit 7e769c7
Hide dotfiles from instance content scanning (#5999)
* Hide dotfiles from instance content scanning
Prevent hidden files such as .DS_Store from being treated as valid instance content.
This updates the profile scanning logic in [packages/app-lib/src/state/profiles.rs](/Users/froggy/Downloads/code-main/packages/app-lib/src/state/profiles.rs#L420) to ignore basenames that start with '.', and applies that filter consistently in both scan paths.
Signed-off-by: Corsican Frog <49497194+acorsicanfrog@users.noreply.github.com>
* Whitelist scannable instance content files
Only scan supported content archives into instance content.
Accept .jar files for mods and .zip files for datapacks, resourcepacks, and shaderpacks, after trimming the .disabled suffix.
This prevents .DS_Store and other unsupported files from appearing in the Content tab.
Signed-off-by: Corsican Frog <49497194+acorsicanfrog@users.noreply.github.com>
* Fmt
---------
Signed-off-by: Corsican Frog <49497194+acorsicanfrog@users.noreply.github.com>
Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
Co-authored-by: François-X. T. <fetch@ferrous.ch>1 parent c1c86e3 commit 7e769c7
1 file changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
420 | 439 | | |
421 | 440 | | |
422 | 441 | | |
| |||
648 | 667 | | |
649 | 668 | | |
650 | 669 | | |
651 | | - | |
652 | | - | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
653 | 674 | | |
654 | 675 | | |
655 | 676 | | |
| |||
1052 | 1073 | | |
1053 | 1074 | | |
1054 | 1075 | | |
1055 | | - | |
1056 | | - | |
| 1076 | + | |
1057 | 1077 | | |
1058 | 1078 | | |
1059 | 1079 | | |
| |||
0 commit comments