EDCD / EDMarketConnector

Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.
GNU General Public License v2.0
987 stars 155 forks source link

[1268] Handover to Path.is_reserved() #2225

Closed Rixxan closed 1 month ago

Rixxan commented 1 month ago

Description

This PR adds additional robust checking to make sure that a ship name is not in the Windows Reserved Filename list. This removes the older self-maintained version, and dumps the responsibility for that on Python's Pathlib module. (Why replicate existing work?)

This slightly renames how ship names can be output, however, remains safe for use in Windows and Linux (Linux will accept any filename).

Type of Change

How Tested

Tested on a number of ship names using Windows reserved naming schemes. (Hello con, the Adder!)

Notes

Resolves #1268