Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support absolute filepath. #29

Closed
mayurikini opened this issue Oct 28, 2024 · 3 comments
Closed

Support absolute filepath. #29

mayurikini opened this issue Oct 28, 2024 · 3 comments

Comments

@mayurikini
Copy link
Contributor

Continuing on #24 (comment)

During boot process the requests for config files are absolute paths, which leads to \test.cfg or /test.cfg request (for windows and linux).

Could we add a patch to support this by ignoring first character if it is "\" or "/"?

Here is a sample code that can be added in both server.rs and client_config.rs:

                    let filename = file_name.trim_start_matches(|c| c == '/' || c == '\\').to_string();
@stappersg
Copy link
Contributor

stappersg commented Oct 28, 2024 via email

@stappersg
Copy link
Contributor

stappersg commented Oct 29, 2024 via email

@altugbakan
Copy link
Owner

Fixed with #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants