hacdias / webdav

A simple and standalone WebDAV server.
MIT License
3.41k stars 426 forks source link

feat: loading config file from dir of the executable file path #136

Open dake0805 opened 2 years ago

dake0805 commented 2 years ago

when looking for config file, adding another path besides

which is the path to the executable file webdav or webdav.exe,

So I can put the binary file and the config file together, and running webdav with this config file from any other working directory.

image

like the example in pic, config.yml set the port to 80 and the program read it correctly.

test passed on Windows 11 and Ubuntu 20.04 (WSL2)