-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func FilesFromDisk filenames arg, if path seperator is not system defined, pathInArchieve may be wrong path #382
Comments
I want disk/folder2/a.txt to be CF/a.txt,but it's CF/disk/folder2/a.txt, in windows |
Thanks, I'll look into this (but I don't use Windows so I'll ask for your help to verify) |
Ok so I just looked at the tests and this is expected. What happens if you specify |
in windows the seperator is \,if l use / in filenames arg,it will not work as I want, maybe you can turn \ to / in arg to return the right path
…---Original---
From: "Matt ***@***.***>
Date: Mon, Aug 21, 2023 21:37 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [mholt/archiver] func FilesFromDisk filenames arg, if pathseperator is not system defined, pathInArchieve may be wrong path (Issue #382)
Ok so I just looked at the tests and this is expected. What happens if you specify CF/ instead?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@mind-owner You mean If that works for you on Windows then I suggest using that 🤷♂️ -- nothing needs to be fixed. (We're already using |
yes, you are right. I can use \ in windows to return the right path. and usually people would only use / as the path seperator in any system(linux,windows etc), l hope the func FilesFromDisk can support this feature, then l don't need to mention / or \, thanks.
…---Original---
From: "Matt ***@***.***>
Date: Tue, Aug 22, 2023 00:07 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [mholt/archiver] func FilesFromDisk filenames arg, if pathseperator is not system defined, pathInArchieve may be wrong path (Issue #382)
@mind-owner You mean disk/folder2 -> disk\folder2?
If that works for you on Windows then I suggest using that 🤷♂️ -- nothing needs to be fixed. (We're already using filepath.* function which do account for path separators.)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@mind-owner If you call |
Closing due to inactivity |
What version of the package or command are you using?
What are you trying to do?
What steps did you take?
What did you expect to happen, and what actually happened instead?
How do you think this should be fixed?
Please link to any related issues, pull requests, and/or discussion
Bonus: What do you use archiver for, and do you find it useful?
The text was updated successfully, but these errors were encountered: