走上目录树 [英] Walk up the directory tree

查看:76
本文介绍了走上目录树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文件树如下:

- foo
  - lorem
    - ipsum <-
  - baz <-
- bar
- baz

当前访问的文件是 ipsum 。现在,我想找到第一个
baz 及其所在的目录。如何从
爬到树上ipsum 是否在elisp中?

The currently visited file is ipsum. Now I want to find the first baz and the directory it is in. How do I walk up the tree from ipsum in elisp?

推荐答案

您要 locate-dominated-file

这篇关于走上目录树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆