Closed comanche closed 3 years ago
Can you please explain the problem that you are encountering with backslash in root drive? On my side I can use D:\
for example and it works without issue.
After further investigation, I'm seeing the following:
dirhash.exe D:\ blake3
dirhash.exe "D:\dir with space" blake3
The following stops with Error: The given input file doesn't exist:
dirhash.exe "D:\" blake3
dirhash.exe "D:\dir with space\" blake3
There seems to be an issue with the trailing \"
. The \
must be escaping the "
.
This issue is noticed in cmd.exe
and not PowerShell.
Thank you for the clarification.
This is a limitation of Windows CMD which uses backslash as escape character. For example, in the case of dirhash.exe "D:\" blake3
, DirHash as argument the string "D:" blake3
" which of course doesn't exist as a path.
So this is not a DirHash issue and this CMD particularity must be taken into account when typing command line arguments.
Thanks for the clarification.
Problem: Cannot handle the blackslash on the root drive as in
G:\
. However, it handle it normally for a root folder as inG:\a
orG:\a\
.To get around this, the forward slash can be used as in
G:/
.