X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/Dir
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Dir
/
📄
%5b%5d-c.yaml
(397 B)
ðŸ“
..
📄
cdesc-Dir.yaml
(1.97 KB)
📄
chdir-c.yaml
(1.46 KB)
📄
chroot-c.yaml
(420 B)
📄
close-i.yaml
(425 B)
📄
delete-c.yaml
(387 B)
📄
each-i.yaml
(629 B)
📄
entries-c.yaml
(547 B)
📄
foreach-c.yaml
(643 B)
📄
getwd-c.yaml
(451 B)
📄
glob-c.yaml
(3.46 KB)
📄
inspect-i.yaml
(269 B)
📄
mkdir-c.yaml
(605 B)
📄
mktmpdir-c.yaml
(2.34 KB)
📄
new-c.yaml
(277 B)
📄
open-c.yaml
(510 B)
📄
path-i.yaml
(397 B)
📄
pos%3d-i.yaml
(636 B)
📄
pos-i.yaml
(468 B)
📄
pwd-c.yaml
(447 B)
📄
read-i.yaml
(526 B)
📄
rewind-i.yaml
(461 B)
📄
rmdir-c.yaml
(385 B)
📄
seek-i.yaml
(699 B)
📄
tell-i.yaml
(470 B)
📄
tmpdir-c.yaml
(251 B)
📄
unlink-c.yaml
(387 B)
Editing: glob-c.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns the filenames found by expanding <em>pattern</em> which is an <tt>Array</tt> of the patterns or the pattern <tt>String</tt>, either as an <em>array</em> or as parameters to the block. Note that this pattern is not a regexp (it's closer to a shell glob). See <tt>File::fnmatch</tt> for the meaning of the <em>flags</em> parameter. Note that case sensitivity depends on your system (so <tt>File::FNM_CASEFOLD</tt> is ignored) - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "<code>*</code>:" body: Matches any file. Can be restricted by other values in the glob. <tt>*</tt> will match all files; <tt>c*</tt> will match all files beginning with <tt>c</tt>; <tt>*c</tt> will match all files ending with <tt>c</tt>; and <b><tt>c</tt></b> will match all files that have <tt>c</tt> in them (including at the beginning or end). Equivalent to <tt>/ .* /x</tt> in regexp. - !ruby/struct:SM::Flow::LI label: "<code>**</code>:" body: Matches directories recursively. - !ruby/struct:SM::Flow::LI label: "<code>?</code>:" body: Matches any one character. Equivalent to <tt>/.{1}/</tt> in regexp. - !ruby/struct:SM::Flow::LI label: "<code>[set]</code>:" body: Matches any one character in <tt>set</tt>. Behaves exactly like character sets in Regexp, including set negation (<tt>[^a-z]</tt>). - !ruby/struct:SM::Flow::LI label: "<code>{p,q}</code>:" body: Matches either literal <tt>p</tt> or literal <tt>q</tt>. Matching literals may be more than one character in length. More than two literals may be specified. Equivalent to pattern alternation in regexp. - !ruby/struct:SM::Flow::LI label: "<code>\\</code>:" body: Escapes the next metacharacter. type: :NOTE - !ruby/struct:SM::Flow::VERB body: " Dir["config.?"] #=> ["config.h"]\n Dir.glob("config.?") #=> ["config.h"]\n Dir.glob("*.[a-z][a-z]") #=> ["main.rb"]\n Dir.glob("*.[^r]*") #=> ["config.h"]\n Dir.glob("*.{rb,h}") #=> ["main.rb", "config.h"]\n Dir.glob("*") #=> ["config.h", "main.rb"]\n Dir.glob("*", File::FNM_DOTMATCH) #=> [".", "..", "config.h", "main.rb"]\n\n rbfiles = File.join("**", "*.rb")\n Dir.glob(rbfiles) #=> ["main.rb",\n "lib/song.rb",\n "lib/song/karaoke.rb"]\n libdirs = File.join("**", "lib")\n Dir.glob(libdirs) #=> ["lib"]\n\n librbfiles = File.join("**", "lib", "**", "*.rb")\n Dir.glob(librbfiles) #=> ["lib/song.rb",\n "lib/song/karaoke.rb"]\n\n librbfiles = File.join("**", "lib", "*.rb")\n Dir.glob(librbfiles) #=> ["lib/song.rb"]\n" full_name: Dir::glob is_singleton: true name: glob params: | Dir.glob( pattern, [flags] ) => array Dir.glob( pattern, [flags] ) {| filename | block } => nil visibility: public
Upload File
Create Folder