mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #225] Path with spaces are not recognized (Windows) #104
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nadya-p on GitHub (Jul 7, 2022).
Original GitHub issue: https://github.com/bootandy/dust/issues/225
Typically on Windows, some paths contain spaces. Such the paths don't seem to be recognized by dust:
PS C:> ls .\test
-a---- 07/07/2022 14:23 5 file.txt
PS C:> ls '.\test with space'
-a---- 07/07/2022 14:23 5 file.txt
PS C:> a .\test
5B ┌── file.txt│█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ │ 100%
5B ┌─┴ test │█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ │ 100%
PS C:> a ".\test with space"
Did not have permissions for all directories
@bootandy commented on GitHub (Jul 13, 2022):
I tried creating a path with a space in linux and it worked fine. Will likely need someone with a windows box to confirm and fix this.
@jeffcai commented on GitHub (Jul 28, 2022):
I did test, if the director not exits it will show the exception: Did not have permissions for all directories, otherwise even with the directory name with space it still works, the tested release is dust-v0.8.1-x86_64-pc-windows-gnu.zip on Win enterprise 10.
@lesleyrs commented on GitHub (May 7, 2023):
Yea just like @jeffcai it works for me as long as the directory exists.
I still get the permission message when using
dustin a system directory even with admin rights, not sure why? But it still works correctly. So I don't think there's a problem here.