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
WISH: Add built-in globbing on Windows #5913
Comments
It is because AFAIK Windows doesn't support globbing. |
I believe Windows's cmd.exe supports globbing, e.g.
or are you saying that the shell itself does not pass the expanded |
Yes that I what I am saying. |
I see. So, I guess this issue now turned into a feature request asking for built-in support for globbing by ipfs. I'm not a golang user / develop so in case I have very little to contribute. Maybe, func Glob(pattern string) (matches []string, err error) of filepath is of use here? |
@HenrikBengtsson i think that does do what you want. We could probably detect glob characters in the input and call that on it if found. |
That sounds great. (I'm becoming almost a full-time *nix user these days, but figured there are/will be lots on IPFS users on Windows too). |
@whyrusleeping problem is that glob characters can be valid filenames, we could make heuristic that if there is no file like that we try to expand the globe. |
Under the assumption that all other shells do globbing for IPFS, would it make sense to only call |
On Windows 7 Ultimate 64-bit with NTFS,
ipfs add
gives an error when trying to add files using wildcard / globbing, e.g.ipfs add *
andipfs add *.txt
.Example
It works when specifying the complete filename:
This works on Linux, e.g.
The text was updated successfully, but these errors were encountered: