# directory ancestors (parent directories)

* ancestors

* [ancestors](https://doc.rust-lang.org/std/path/struct.Path.html#method.ancestors)

{% embed include file="src/examples/path/ancestors/src/main.rs" %}
{% embed include file="src/examples/path/ancestors/out.out" %}


