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

Allow for custom directory separators #275

Open
danon opened this issue Jul 8, 2022 · 2 comments
Open

Allow for custom directory separators #275

danon opened this issue Jul 8, 2022 · 2 comments

Comments

@danon
Copy link

danon commented Jul 8, 2022

Given that the file system is virtual, and as I understand fairly independent of the underlying system, it would seam it's possible to set a custom directory separator.

I have a usecase.

I develop an application that's supposed to work both on windows and Unix, so I need to write tests for / as separator and \ as well. In order to test it, I run two docker containers, one based on debian, one on windows.

If vfsStream supported both kinds of separators, I could test all my code without need for docker at all.

@bizurkur
Copy link
Contributor

bizurkur commented Jul 10, 2022

There's some in-progress stuff that's blocking work on this library at the moment (a massive restructuring) so it could be a while for this to happen (see #221).

If you absolutely need this today, you may want to check out https://github.com/bizurkur/mockfs. It already supports the feature you're asking about and has a pre-built configuration to mimic a Windows OS. It's more than just the file separator that changes - the characters that are allowed in file names also change. It also supports / as the root partition for Unix-like OSes.

@danon
Copy link
Author

danon commented Jul 10, 2022

It's okay, I can wait. I got the pipeline that runs on docker windows and ubuntu, so I can test it.

It just struc me that with virtual file system, that's a possibility.

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

No branches or pull requests

2 participants