[GH-ISSUE #225] Path with spaces are not recognized (Windows) #104

Closed
opened 2026-06-08 11:25:42 +03:00 by zhus · 3 comments
Owner

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

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
zhus closed this issue 2026-06-08 11:25:42 +03:00
Author
Owner

@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.

<!-- gh-comment-id:1182901125 --> @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.
Author
Owner

@jeffcai commented on GitHub (Jul 28, 2022):

issue

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.

<!-- gh-comment-id:1197568563 --> @jeffcai commented on GitHub (Jul 28, 2022): <img width="902" alt="issue" src="https://user-images.githubusercontent.com/671273/181404437-a02baa3b-042d-4579-be1a-90063bd04b3f.png"> 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.
Author
Owner

@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 dust in 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.

<!-- gh-comment-id:1537464269 --> @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 `dust` in 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#104