Skip to content

Add skip files extensions during filecopy of new mod version creation and skip all files starting with a "." during all directory copies.#360

Open
Shivansps wants to merge 2 commits intoKnossosNET:mainfrom
Shivansps:mod-version-skip-extensions
Open

Add skip files extensions during filecopy of new mod version creation and skip all files starting with a "." during all directory copies.#360
Shivansps wants to merge 2 commits intoKnossosNET:mainfrom
Shivansps:mod-version-skip-extensions

Conversation

@Shivansps
Copy link
Member

@Shivansps Shivansps commented Mar 15, 2026

  1. Allows to skip specific extensions during mod version creation if desired. Usefull if you want to avoid haing docs or pdfs del a DevEnv version to a regular version.
    Customizable by editing the settings file.
image
  1. Skip all files and folders with a Unix hidden file convention (starts with a ".") by default

  2. Also catched an recursive bug on the foldercopy function as the ignored extension list were not being passed to the recursion.

Also applies to folders starting with a period, as unix hidden folder convention.

Customizable by editing the settings file.
@Shivansps Shivansps added the enhancement New feature or request label Mar 15, 2026
@Shivansps Shivansps added this to the 1.3.3 milestone Mar 15, 2026
@Shivansps Shivansps added the bug Something isn't working label Mar 15, 2026
@notimaginative
Copy link
Contributor

Shouldn't all files and folders starting with a period be skipped? What comes after the period really shouldn't matter. That would also be helpful on Mac where you've got .DS_Store and resource forks that should always be skipped.

@Shivansps
Copy link
Member Author

Shivansps commented Mar 15, 2026

Shouldn't all files and folders starting with a period be skipped? What comes after the period really shouldn't matter. That would also be helpful on Mac where you've got .DS_Store and resource forks that should always be skipped.

i was thinking exactly about that as i was making this. Do you think its safe to assume that and skip everything that starts with a "." during file copies in general? That far easier

@notimaginative
Copy link
Contributor

Yes it should be safe. CFile is going to ignore most everything that starts with a period anyway, and whatever it doesn't ignore is unlikely to result in good things happening. So really, ignoring absolutely everything starting with a "." is probably the safest option.

@Shivansps Shivansps closed this Mar 15, 2026
@Shivansps Shivansps reopened this Mar 15, 2026
@Shivansps Shivansps changed the title Add skip files extensions during filecopy of new mod version creation Add skip files extensions during filecopy of new mod version creation and skip all files starting with a "." during all directory copies. Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants