[ruby-dev:50242] [Ruby trunk Feature#11302] Dir.entries and Dir.foreach without [".", ".."]
From:
eregontp@...
Date:
2017-09-14 09:07:25 UTC
List:
ruby-dev #50242
Issue #11302 has been updated by Eregon (Benoit Daloze). The decision here is surprising given https://bugs.ruby-lang.org/issues/13789#note-3 but nevertheless I'm very happy this got accepted. ---------------------------------------- Feature #11302: Dir.entries and Dir.foreach without [".", ".."] https://bugs.ruby-lang.org/issues/11302#change-66653 * Author: naruse (Yui NARUSE) * Status: Closed * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: ---------------------------------------- Dir.entries returns an array of its content with "." and "..". But as far as I met, almost all cases don't need them. How about adding such new method or options? -- https://bugs.ruby-lang.org/