Skip to content

Releases: thombashi/pathvalidate

v2.4.0

21 Mar 13:28
v2.4.0
Compare
Choose a tag to compare
  • Add exclude_symbols argument to replace_symbol function
  • Fix permissions of files included in sdist package binary (Thanks to @hegjon)

v2.3.2

03 Jan 09:40
v2.3.2
Compare
Choose a tag to compare
  • Fix to disallow file name/path that only white spaces for universal platform

v2.3.1

13 Dec 08:33
v2.3.1
Compare
Choose a tag to compare
  • Modify to accept file name/path that consists only whitespaces: #15 (Thank to @Traktormaster)

v2.3.0

03 May 15:40
v2.3.0
Compare
Choose a tag to compare
  • Change not to process for "."/".." by sanitization functions: #13 (Thanks to @ProfElectric)
  • Change to normalize with sanitize_filepath in default
  • Add normalize interface to sanitize_filepath

v2.2.2

28 Mar 12:33
v2.2.2
Compare
Choose a tag to compare
  • Improve file path validation for Windows platform: #12 (Thanks to @bschollnick)
  • Fix __str__ method
  • Fix to avoid raise an exception when an absolute path includes "."/".."
  • Modify an error message
  • Modify raising exception from NullNameError to ValidationError of validate_pathtype

v2.2.1

20 Mar 11:13
v2.2.1
Compare
Choose a tag to compare
  • Fix to include py.typed to the package

v2.2.0

12 Feb 10:02
v2.2.0
Compare
Choose a tag to compare
  • Add POSIX as a platform
  • Add a reserved keyword for macOS
  • Change platform of validate_filepath_arg/sanitize_filepath_arg to 'auto': #11 (Thanks to @freelanceAndy)

v2.1.0

01 Feb 10:34
v2.1.0
Compare
Choose a tag to compare
  • Add check_reserved argument to validate/sanitize functions
  • Add '/' as a reserved file path for Linux/macOS
  • Suppress errors when sanitizing null values
  • Fix max_len value check for file names
  • Include type annotation information to the package
  • Remove dev extras_require
  • Bug fixes

v2.0.0

13 Jan 02:15
v2.0.0
Compare
Choose a tag to compare
  • Change to be more strict validation for absolute paths
  • Fix argparse validator/sanitizer failed when empty inputs
  • Bug fixes

v1.1.0

04 Jan 12:00
v1.1.0
Compare
Choose a tag to compare
  • Modify validate/sanitize functions for argparse
  • Modify validate/sanitize functions for click
  • Update dev extras