作者:曾明铭智瑜淑岳 | 来源:互联网 | 2023-09-09 13:35
HowdoIgetalistofthefoldersthatexistinacertaindirectorywithruby?如何使用ruby获得存在于某个目录中的文
How do I get a list of the folders that exist in a certain directory with ruby?
如何使用ruby获得存在于某个目录中的文件夹列表?
Dir.entries()
looks close but I don't know how to limit to folders only.
条目()看起来很接近,但我不知道如何只限制文件夹。
12 个解决方案