[#73707] [Ruby trunk Misc#12004] Code of Conduct — hanmac@...
Issue #12004 has been updated by Hans Mackowiak.
3 messages
2016/02/05
[#73730] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/07
[#73746] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/09
[#73919] [Ruby trunk Feature#11262] Make more objects behave like "Functions" — Ruby-Lang@...
Issue #11262 has been updated by J旦rg W Mittag.
3 messages
2016/02/22
[#74019] [Ruby trunk Bug#12103][Rejected] ruby process hangs while executing regular expression. — duerst@...
Issue #12103 has been updated by Martin D端rst.
3 messages
2016/02/27
[ruby-core:73853] Re: [Ruby trunk Feature#10121] Dir.empty?
From:
Hanlyu Sarang <hanlyusarang@...>
Date:
2016-02-16 17:51:04 UTC
List:
ruby-core #73853
on windows, i also have to take "desktop.ini" files into consideration, and on mac there are ".DS_Store" files; none of these are truly directory contents, but rather for directory configuration; ignores = [ '..', '.', 'desktop.ini', '.DS_Store' ] and there are even more .files and .directories on *nix, graphical *nix and virtual *nix systems, none of which are truly directory contents; On Tue, Feb 16, 2016 at 11:05 AM, <shevegen@gmail.com> wrote: > Issue #10121 has been updated by Robert A. Heiler. > > > Woot! Woot! > > Thanks to nobu the patch monster and matz! > > ---------------------------------------- > Feature #10121: Dir.empty? > https://bugs.ruby-lang.org/issues/10121#change-57024 > > * Author: Robert A. Heiler > * Status: Closed > * Priority: Normal > * Assignee: Yukihiro Matsumoto > ---------------------------------------- > On IRC someone asked how to find out if a directory is empty or not, from > within ruby. > > It seems as if there was no simple way. > > I suggest adding `Dir.empty?` > > On IRC, someone else suggested this: > > ~~~ruby > Dir.entries(dir).size == 2 > ~~~ > > I do not know if there are better ways but possibly that could > be used for a `Dir.empty?` functionality? > > > > -- > https://bugs.ruby-lang.org/ > > Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core> > Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>