Ruby list directory with Dir['*'] including dotfiles but not . and

前端 未结 2 1031
轮回少年
轮回少年 2021-02-19 02:32

How do I get Dir[\'*\'] to include dotfiles, e.g., .gitignore, but not . and ..?

I.e., is there a better way to do:

2条回答
提交回复
热议问题