CommunityDragon / CDTB

A library containing everything to extract files from client files.
GNU Lesser General Public License v3.0
119 stars 33 forks source link

Guess extension for extensionless files and use when extracting #76

Closed Morilli closed 1 year ago

Morilli commented 1 year ago

Code should be pretty self-explanatory. This should resolve potential conflicts with extensionless files and folders and also ensure those files are exported with a known good extension.

Ideally we should probably prefer the guess_extension method's return over a resolved path's extension, however this should be done in a way that doesn't require reading an entire wad file, potentially even multiple times, so that's for later.