# Really wonky file handing

**URL:** <https://discuss.python.org/t/really-wonky-file-handing/18311>\
**Category:** Python Help\
**Created:** [August 19, 2022, 2:32am UTC](https://discuss.python.org/t/really-wonky-file-handing/18311 "2022-08-19T02:32:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![eryksun](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/eryksun/32/697_2.png) [@eryksun](https://discuss.python.org/u/eryksun)\
**Post date:** [August 19, 2022, 2:59pm UTC](https://discuss.python.org/t/really-wonky-file-handing/18311/5 "2022-08-19T14:59:16Z")

</div>

> [@Rosuav](#):
>
> Windows is quite happy using forward slashes like the rest of the world

I wouldn’t call it “happy”. Forward slash is only ever supported in the Windows API by creating a normalized copy of a path. The native NT API has no support at all for using forward slash as a path separator. Also, even in the Windows file namespace, forward slash is not supported in “\\?\” extended paths and not supported by various file API functions, such as the entire [path API](https://docs.microsoft.com/en-us/windows/win32/api/pathcch). Also, third-party applications and libraries may not support forward slash in paths (e.g. on the command line), possibly because they rely on the path API. It’s easy to just normalize paths. `pathlib.Path` always does this. Otherwise use `os.path.normpath()`.

---

_[View the full topic](https://discuss.python.org/t/really-wonky-file-handing/18311)._
