Project

General

Profile

Actions

Feature #13789

closed

Dir - methods

Added by opti (Andreas Opti) over 7 years ago. Updated about 7 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:82273]

Description

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


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #11302: Dir.entries and Dir.foreach without [".", ".."]Closedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0