mirror of https://github.com/raandree/NTFSSecurity
Browse Source
GetRelativePath treated every path that started with a dot as .\path and dropped its first two characters, so a command on .gitignore read, changed, or removed itignore in the same folder when that item existed; Remove-Item2 -Path .RemoveMe removed emoveMe, and Copy-Item2 -Force with the destination .CopyTarget overwrote opyTarget. Only .\ and ./ are now stripped, and only .. and ..\ go up a folder; any other name is combined with the current location. All path parameters resolve through this method: -Path, -Destination, and -Target. The coverage report of rc6 found the untested branch. The tests use a decoy item with the shortened name and fail without the fix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: AI Assistant <ai@example.com>ai/release-5.0.0-rc6
4 changed files with 67 additions and 3 deletions
Loading…
Reference in new issue