Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
说Dir['path/**/*.rb'],或多或少,就像说:
Dir['path/**/*.rb']
find path -name '*.rb'
从壳。因此,使用 RubyDir时,**glob 会搜索指定path目录和 . 下的所有目录path。显然 bash**只查看目录下的目录,而根本path不查看文件path。
Dir
**
path