gregl83 / paq

Hash file or directory recursively using Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add windows support

gregl83 opened this issue · comments

unix symlink package is a hard dependency in v1.0.0.

  • add target not windows statements for symlink testing
  • convert windows relative paths to nix prior to hashing

Rust file system handling can be different on Windows depending on support for symlinks. Supporting symlinks requires nix and windows specific handling and tests.

windows support was added with the following nuances:

  • testing the paq example required maintaining unix line endings in windows targets
  • symlinks required specific logic to hash target path rather than target content