[ruby-core:82273] [Ruby trunk Feature#13789] Dir - methods

From: inform@...
Date: 2017-08-07 21:31:17 UTC
List: ruby-core #82273
Issue #13789 has been reported by opti (Andreas Opti).

----------------------------------------
Feature #13789: Dir - methods
https://bugs.ruby-lang.org/issues/13789

* Author: opti (Andreas Opti)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
If having (new) Dir.entries, Dir.chidren, I would also add:
Dir.entries (includes all),
Dir.files Dir.dirs Dir.symlinks Dir.pipes (Dir.something_more?)

Dir.file?(filename); Dir.symlink[s]?(*symlinks), etc  # give one or more names
To be discussed if more names are useful, perhaps using Dir.file_s_, Dir.pipe_s_
=> return count of given files, that are of that type.

Also (a new) Dir.cd 
should return nil (no exception), if cd isn't sucessful, else the new path.

thanks
Opti




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next