Skip to content

Releases: thombashi/pathvalidate

v2.5.0

26 Sep 13:54
v2.5.0

Choose a tag to compare

  • Add support for Python 3.10
  • Drop support for Python 3.5
  • Add null_value_handler argument to sanitize_filename/sanitize_filepath functions: #20 (Thanks to @
    mkbloke)
  • Add AbstractSanitizer/AbstractValidator classes to import path
  • Add replace_ansi_escape function
  • Add setup-ci target to Makefile
  • Modify min_len/max_len to use default values when assigned minus values

v2.4.1

03 Apr 16:50
v2.4.1

Choose a tag to compare

  • Fix filename validations that include '\' (backslash) on other than Windows: #18 (Thanks to @Traktormaster)

v2.4.0

21 Mar 13:28
v2.4.0

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

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

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

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

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

Choose a tag to compare

  • Fix to include py.typed to the package

v2.2.0

12 Feb 10:02
v2.2.0

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

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