Skip to content
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

(Windows) Files import with "\" treated as a character in file name rather than path separator #8

Open
epage opened this issue Aug 2, 2017 · 4 comments
Assignees
Labels

Comments

@epage
Copy link

epage commented Aug 2, 2017

Cobalt has calls import_dir to import a statically generated site. @natejms has reported that on Windows (using msys?) that \ is used in the paths but is treated as a file name character rather than as a path separator.

See https://github.com/natejms/cobalt-org.github.io/tree/master

OS: Windows 10

My best guesses at the reproduction steps:

  1. Install cobalt
  2. cobalt init
  3. cobalt import
@LucioFranco
Copy link
Owner

Hmm. I took a look and it is adding a \ before the filename for me. I think this issue arises due to it actually running on windows but in a fake linux env. I will need to take some more time to fix this but will probably need to filter out any extra \.

I wonder if there are any open issues with the path crate.

@LucioFranco LucioFranco added the bug label Aug 2, 2017
@epage
Copy link
Author

epage commented Mar 12, 2018

Wonder if this is related: sharkdp/fd#153

@jedahan
Copy link

jedahan commented Mar 12, 2018

Possibly also jedahan/zr#14

@LucioFranco
Copy link
Owner

Yeah this is def related but I don’t like that possible fix. Will have to wait and see how they finally decide to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants