pldubouilh / gossa

🎶 a fast and simple multimedia fileserver
MIT License
874 stars 73 forks source link

windows paths are probably broken #74

Open NewHappy1024 opened 2 years ago

NewHappy1024 commented 2 years ago

I found that the software has some problems in setting the shared folder path. It can only be relative paths and not absolute paths for example: When I use the command line below, it works normally : gossa.exe -h 0.0.0.0 -p 8001 .\gossa When I use the command line below, it does not work properly: gossa.exe -h 0.0.0.0 -p 8001 f:\download it can’t display the files in the folder correctly on the webpage,but displays "error [get content /] invalid path"

pldubouilh commented 2 years ago

thanks for the report - I haven't really tested on windows, so I'm not surprised something's off I'll try to test it out and get a fix for the next release :+1:

TheBestPessimist commented 2 years ago

If interested in using docker on windows, it's really easy to do it:

In powershell, if you want to share the root of the drive (you can see i'm in folder D:\:

PS D:\> docker run --rm -it -v ${pwd}:/shared -p 8001:8001 pldubouilh/gossa
Gossa starting on directory /shared
Listening on http://0.0.0.0:8001/

and now just access the link http://localhost:8001.