Skip to content

Static file server should issue a warning if specified folder does not exist #315

Closed
@BeatWolf

Description

@BeatWolf

I came across this problem when running the examples in an IDE such as CLion.

In a simple example where we set a folder as the base directory for the static file server, and the folder does not exist, the library does not complain. Now this could perhaps sometimes be wanted, but i think it would be save to print a warning in that case, because its most certainly not what was intended.

The code i'm talking about looks like this:
svr.set_base_dir("./www", "/public");

The problem is that for example CLion does not run the executable, by default, in the project root folder, but the build directory. As there are no errors, its not an easy to debug issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions