Path components aren't Path s themselves. You are likely looking for std::path::Path.ancestors() . You can iterate over those and check ...
確定! 回上一頁