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

feat: Enable generation of windows file paths #1962

Closed
wants to merge 1 commit into from

Conversation

michaelCTS
Copy link

What does this change

fake.file_path() now has a window: Optional[bool] that allows generating windows file paths.

What was wrong

It was not possible to fake windows paths.

How this fixes it

Windows paths (both relative and absolute) can be faked.

Fixes #1961

Windows file paths are separated by "\" and absolute paths start with a drive letter.

Closes joke2k#1961
@fcurella
Copy link
Collaborator

fcurella commented Jan 8, 2024

superceded by #1963

@fcurella fcurella closed this Jan 8, 2024
@michaelCTS michaelCTS deleted the windows-paths branch January 9, 2024 07:49
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

Successfully merging this pull request may close these issues.

[Feature request] Support windows path for file_path provider
2 participants