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.
Version: 0.7.4 When iterate directory and use
get_dir
orget_file
from a non-rootDir
, 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 issomedir
(the directory includes a file namedsomefile
), and I called get_dir("somefile") on it, the result will be None. Here is sourcedir.rs
, which supports why it's happening.