File paths in Windows environment not case sensitive?

前端 未结 3 1250
野的像风
野的像风 2020-11-27 06:01

Is it safe to assume that Windows local and network file paths are NOT case sensitive?

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 06:30

    I run case sensitive files system on windows. I use it on a per-directory basis: https://devblogs.microsoft.com/commandline/per-directory-case-sensitivity-and-wsl/

    This breaks all windows applications that do not account for it and do things like convert file requests to all lowercase.

    But I wouldn't rule out others running case sensitivity on entire hard drives and network resources.

    Typically only developers will do this though so it entirely depends on your use case.

    If you are making an application for advanced power users I'd say it is not a safe assumption.

    I'd recommend everyone assume a case sensitive file system when building applications for windows. Because you only run into trouble assuming non-case sensitive.

提交回复
热议问题