X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/File
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
File
/
ðŸ“
..
ðŸ“
Constants
ðŸ“
Stat
📄
atime-c.yaml
(416 B)
📄
atime-i.yaml
(469 B)
📄
basename-c.yaml
(769 B)
📄
blockdev%3f-c.yaml
(313 B)
📄
catname-c.yaml
(486 B)
📄
cdesc-File.yaml
(5.45 KB)
📄
chardev%3f-c.yaml
(314 B)
📄
chmod-c.yaml
(634 B)
📄
chmod-i.yaml
(632 B)
📄
chown-c.yaml
(701 B)
📄
chown-i.yaml
(699 B)
📄
compare-c.yaml
(408 B)
📄
copy-c.yaml
(419 B)
📄
ctime-c.yaml
(482 B)
📄
ctime-i.yaml
(473 B)
📄
delete-c.yaml
(424 B)
📄
directory%3f-c.yaml
(416 B)
📄
dirname-c.yaml
(590 B)
📄
executable%3f-c.yaml
(355 B)
📄
executable_real%3f-c.yaml
(365 B)
📄
exist%3f-c.yaml
(353 B)
📄
exists%3f-c.yaml
(355 B)
📄
expand_path-c.yaml
(952 B)
📄
extname-c.yaml
(629 B)
📄
file%3f-c.yaml
(311 B)
📄
flock-i.yaml
(1.33 KB)
📄
fnmatch%3f-c.yaml
(4.75 KB)
📄
fnmatch-c.yaml
(4.75 KB)
📄
ftype-c.yaml
(758 B)
📄
grpowned%3f-c.yaml
(411 B)
📄
identical%3f-c.yaml
(890 B)
📄
install-c.yaml
(544 B)
📄
join-c.yaml
(458 B)
📄
lchmod-c.yaml
(443 B)
📄
lchown-c.yaml
(492 B)
📄
link-c.yaml
(637 B)
📄
lstat-c.yaml
(648 B)
📄
lstat-i.yaml
(655 B)
📄
makedirs-c.yaml
(704 B)
📄
move-c.yaml
(423 B)
📄
mtime-c.yaml
(416 B)
📄
mtime-i.yaml
(389 B)
📄
new-c.yaml
(1.02 KB)
📄
o_chmod-i.yaml
(223 B)
📄
owned%3f-c.yaml
(366 B)
📄
path-i.yaml
(535 B)
📄
pipe%3f-c.yaml
(293 B)
📄
readable%3f-c.yaml
(347 B)
📄
readable_real%3f-c.yaml
(357 B)
📄
readlink-c.yaml
(532 B)
📄
rename-c.yaml
(457 B)
📄
safe_unlink-c.yaml
(403 B)
📄
setgid%3f-c.yaml
(312 B)
📄
setuid%3f-c.yaml
(312 B)
📄
size%3f-c.yaml
(349 B)
📄
size-c.yaml
(272 B)
📄
socket%3f-c.yaml
(301 B)
📄
split-c.yaml
(545 B)
📄
stat-c.yaml
(435 B)
📄
sticky%3f-c.yaml
(312 B)
📄
symlink%3f-c.yaml
(311 B)
📄
symlink-c.yaml
(541 B)
📄
syscopy-c.yaml
(327 B)
📄
truncate-c.yaml
(639 B)
📄
truncate-i.yaml
(639 B)
📄
umask-c.yaml
(656 B)
📄
unlink-c.yaml
(424 B)
📄
utime-c.yaml
(395 B)
📄
writable%3f-c.yaml
(347 B)
📄
writable_real%3f-c.yaml
(357 B)
📄
zero%3f-c.yaml
(309 B)
Editing: fnmatch-c.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: "Returns true if <em>path</em> matches against <em>pattern</em> The pattern is not a regular expression; instead it follows rules similar to shell filename globbing. It may contain the following metacharacters:" - !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 or files expansively. - !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>\\</code>:" body: Escapes the next metacharacter. type: :NOTE - !ruby/struct:SM::Flow::P body: <em>flags</em> is a bitwise OR of the <tt>FNM_xxx</tt> parameters. The same glob pattern and flags are used by <tt>Dir::glob</tt>. - !ruby/struct:SM::Flow::VERB body: " File.fnmatch('cat', 'cat') #=> true : match entire string\n File.fnmatch('cat', 'category') #=> false : only match partial string\n File.fnmatch('c{at,ub}s', 'cats') #=> false : { } isn't supported\n\n File.fnmatch('c?t', 'cat') #=> true : '?' match only 1 character\n File.fnmatch('c??t', 'cat') #=> false : ditto\n File.fnmatch('c*', 'cats') #=> true : '*' match 0 or more characters\n File.fnmatch('c*t', 'c/a/b/t') #=> true : ditto\n File.fnmatch('ca[a-z]', 'cat') #=> true : inclusive bracket expression\n File.fnmatch('ca[^t]', 'cat') #=> false : exclusive bracket expression ('^' or '!')\n\n File.fnmatch('cat', 'CAT') #=> false : case sensitive\n File.fnmatch('cat', 'CAT', File::FNM_CASEFOLD) #=> true : case insensitive\n\n File.fnmatch('?', '/', File::FNM_PATHNAME) #=> false : wildcard doesn't match '/' on FNM_PATHNAME\n File.fnmatch('*', '/', File::FNM_PATHNAME) #=> false : ditto\n File.fnmatch('[/]', '/', File::FNM_PATHNAME) #=> false : ditto\n\n File.fnmatch('\\?', '?') #=> true : escaped wildcard becomes ordinary\n File.fnmatch('\\a', 'a') #=> true : escaped ordinary remains ordinary\n File.fnmatch('\\a', '\\a', File::FNM_NOESCAPE) #=> true : FNM_NOESACPE makes '\\' ordinary\n File.fnmatch('[\\?]', '?') #=> true : can escape inside bracket expression\n\n File.fnmatch('*', '.profile') #=> false : wildcard doesn't match leading\n File.fnmatch('*', '.profile', File::FNM_DOTMATCH) #=> true period by default.\n File.fnmatch('.*', '.profile') #=> true\n\n rbfiles = '**' '/' '*.rb' # you don't have to do like this. just write in single string.\n File.fnmatch(rbfiles, 'main.rb') #=> false\n File.fnmatch(rbfiles, './main.rb') #=> false\n File.fnmatch(rbfiles, 'lib/song.rb') #=> true\n File.fnmatch('**.rb', 'main.rb') #=> true\n File.fnmatch('**.rb', './main.rb') #=> false\n File.fnmatch('**.rb', 'lib/song.rb') #=> true\n File.fnmatch('*', 'dave/.profile') #=> true\n\n pattern = '*' '/' '*'\n File.fnmatch(pattern, 'dave/.profile', File::FNM_PATHNAME) #=> false\n File.fnmatch(pattern, 'dave/.profile', File::FNM_PATHNAME | File::FNM_DOTMATCH) #=> true\n\n pattern = '**' '/' 'foo'\n File.fnmatch(pattern, 'a/b/c/foo', File::FNM_PATHNAME) #=> true\n File.fnmatch(pattern, '/a/b/c/foo', File::FNM_PATHNAME) #=> true\n File.fnmatch(pattern, 'c:/a/b/c/foo', File::FNM_PATHNAME) #=> true\n File.fnmatch(pattern, 'a/.b/c/foo', File::FNM_PATHNAME) #=> false\n File.fnmatch(pattern, 'a/.b/c/foo', File::FNM_PATHNAME | File::FNM_DOTMATCH) #=> true\n" full_name: File::fnmatch is_singleton: true name: fnmatch params: | File.fnmatch( pattern, path, [flags] ) => (true or false) File.fnmatch?( pattern, path, [flags] ) => (true or false) visibility: public
Upload File
Create Folder