mjpclab / go-http-file-server

Simple command line based HTTP file server to share local file system
MIT License
379 stars 55 forks source link

Case sensitive - bug #10

Closed steom closed 3 years ago

steom commented 3 years ago

-a|--alias separator|url-path|separator|fs-path The url-path is case sensitive, While it should case insensitive like everything else

marjune163 commented 3 years ago

Hi, url-path is considered to be case sensitive. That's because on unix like system, file and directory names are always case sensitive.

For example there are two directories on file system in same parent directory, one is Abc and another is abc. Both of them will be displayed in list if server is a unix like system. When you set alias for Abc, the other one abc is still available and accessible.

steom commented 3 years ago

hello, yes, on unix. please consider at least for the windows version to get rid ot this, and render the url-path case insensitive, if possible.

marjune163 commented 3 years ago

Please use version 1.12.0 with option --bind, which creates url-case-insensitive alias.

steom commented 3 years ago

just tried, works fine! thanks!