Skip to content

Conversation

@julien-lecomte
Copy link

This MR makes the tools accept files ending in capitals (eg: .GIT) and not only in lowercase.

This is needed only because the files in my toolsets temp0 folder are in capitals.

Testing

Before:

$ nwn_gff -i /tmp/plc_bookpiles.UTP -o /tmp/plc_bookpiles.UTP.json
Cannot detect file format from filename: /tmp/plc_bookpiles.UTP

After:

ls /tmp/plc_bookpiles.UTP.json
# ls: cannot access '/tmp/plc_bookpiles.UTP.json': No such file or directory

nwn_gff -p -i /tmp/plc_bookpiles.UTP -o /tmp/plc_bookpiles.UTP.json

ls /tmp/plc_bookpiles.UTP.json
# /tmp/plc_bookpiles.UTP.json

Changelog

Changed

- lib: Now accepts file extensions in capital letters.

Licence

  • I am licencing my change under the project's MIT licence, including all changes to GPL-3.0 licensed parts of the codebase.

@Arvirago
Copy link

Arvirago commented Jan 8, 2025

Wish that was fixed in the toolset, and new files be created in lower case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants