loader
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
  • Ptt 大爆卦
  • Dirname FILE
  • 離開本站
你即將離開本站

並前往https://superuser.com/questions/538877/get-the-parent-directory-for-a-file

linux - Get the parent directory for a file

It sounds like you want the basename of the dirname: $ filepath=/a/b/c/d/file $ parentname="$(basename "$(dirname "$filepath")")" $ echo ...

確定! 回上一頁

查詢 「Dirname FILE」的人也找了:

  1. PHP dirname
  2. Dirname
  3. __file__ php
  4. Dirname Linux
  5. PHP get file path
  6. php路徑上一層
  7. php __dir__
  8. Dirname Python

關於我們

pttman

pttman Muster

屬於你的大爆卦

聯終我們

聯盟網站

熱搜事件簿