Michael-F-Bryan / include_dir

The logical evolution of the include_str macro for embedding a directory tree into your binary.
https://michael-f-bryan.github.io/include_dir
MIT License
319 stars 36 forks source link

[Bug] Starnge get_dir and get_file behaviour #104

Open zerodegress opened 3 days ago

zerodegress commented 3 days ago

Version: 0.7.4 When iterate directory and use get_dir or get_file from a non-root Dir, I wish to use a relative path to find files, but it actually uses the path from root. For example, I get a Dir which path is somedir(the directory includes a file named somefile), and I called get_dir("somefile") on it, the result will be None. Here is source dir.rs, which supports why it's happening. 图片