⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby19
/
share
/
ri
/
1.9.1
/
system
/
File
/
View File Name :
fnmatch%3f-c.ri
U:RDoc::AnyMethod[iI" fnmatch?:ETI"File::fnmatch?;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"CReturns true if <i>path</i> matches against <i>pattern</i> The;TI"Bpattern is not a regular expression; instead it follows rules;TI"Esimilar to shell filename globbing. It may contain the following;TI"metacharacters:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type: NOTE:@items[ o:RDoc::Markup::ListItem:@labelI"<code>*</code>;T; [o; ; [I"+Matches any file. Can be restricted by;TI"-other values in the glob. <code>*</code>;TI"/will match all files; <code>c*</code> will;TI"#match all files beginning with;TI"/<code>c</code>; <code>*c</code> will match;TI".all files ending with <code>c</code>; and;TI"0<code>\*c*</code> will match all files that;TI".have <code>c</code> in them (including at;TI")the beginning or end). Equivalent to;TI"$<code>/ .* /x</code> in regexp.;To;;I"<code>**</code>;T; [o; ; [I"-Matches directories recursively or files;TI"expansively.;To;;I"<code>?</code>;T; [o; ; [I"-Matches any one character. Equivalent to;TI"#<code>/.{1}/</code> in regexp.;To;;I"<code>[set]</code>;T; [o; ; [ I"(Matches any one character in +set+.;TI"+Behaves exactly like character sets in;TI"#Regexp, including set negation;TI"(<code>[^a-z]</code>).;To;;I"<code>\</code>;T; [o; ; [I"$Escapes the next metacharacter.;T@o; ; [I"=<i>flags</i> is a bitwise OR of the <code>FNM_xxx</code>;TI"<parameters. The same glob pattern and flags are used by;TI"<code>Dir::glob</code>.;T@o:RDoc::Markup::Verbatim; [3I"MFile.fnmatch('cat', 'cat') #=> true # match entire string ;FI"SFile.fnmatch('cat', 'category') #=> false # only match partial string ;FI"MFile.fnmatch('c{at,ub}s', 'cats') #=> false # { } isn't supported ;FI" ;FI"TFile.fnmatch('c?t', 'cat') #=> true # '?' match only 1 character ;FI"?File.fnmatch('c??t', 'cat') #=> false # ditto ;FI"XFile.fnmatch('c*', 'cats') #=> true # '*' match 0 or more characters ;FI"?File.fnmatch('c*t', 'c/a/b/t') #=> true # ditto ;FI"VFile.fnmatch('ca[a-z]', 'cat') #=> true # inclusive bracket expression ;FI"cFile.fnmatch('ca[^t]', 'cat') #=> false # exclusive bracket expression ('^' or '!') ;FI" ;FI"OFile.fnmatch('cat', 'CAT') #=> false # case sensitive ;FI"QFile.fnmatch('cat', 'CAT', File::FNM_CASEFOLD) #=> true # case insensitive ;FI" ;FI"jFile.fnmatch('?', '/', File::FNM_PATHNAME) #=> false # wildcard doesn't match '/' on FNM_PATHNAME ;FI"EFile.fnmatch('*', '/', File::FNM_PATHNAME) #=> false # ditto ;FI"EFile.fnmatch('[/]', '/', File::FNM_PATHNAME) #=> false # ditto ;FI" ;FI"cFile.fnmatch('\?', '?') #=> true # escaped wildcard becomes ordinary ;FI"cFile.fnmatch('\a', 'a') #=> true # escaped ordinary remains ordinary ;FI"aFile.fnmatch('\a', '\a', File::FNM_NOESCAPE) #=> true # FNM_NOESACPE makes '\' ordinary ;FI"fFile.fnmatch('[\?]', '?') #=> true # can escape inside bracket expression ;FI" ;FI"eFile.fnmatch('*', '.profile') #=> false # wildcard doesn't match leading ;FI"YFile.fnmatch('*', '.profile', File::FNM_DOTMATCH) #=> true # period by default. ;FI"CFile.fnmatch('.*', '.profile') #=> true ;FI" ;FI"^rbfiles = '**' '/' '*.rb' # you don't have to do like this. just write in single string. ;FI"CFile.fnmatch(rbfiles, 'main.rb') #=> false ;FI"CFile.fnmatch(rbfiles, './main.rb') #=> false ;FI"BFile.fnmatch(rbfiles, 'lib/song.rb') #=> true ;FI"BFile.fnmatch('**.rb', 'main.rb') #=> true ;FI"CFile.fnmatch('**.rb', './main.rb') #=> false ;FI"BFile.fnmatch('**.rb', 'lib/song.rb') #=> true ;FI"PFile.fnmatch('*', 'dave/.profile') #=> true ;FI" ;FI"pattern = '*' '/' '*' ;FI"KFile.fnmatch(pattern, 'dave/.profile', File::FNM_PATHNAME) #=> false ;FI"^File.fnmatch(pattern, 'dave/.profile', File::FNM_PATHNAME | File::FNM_DOTMATCH) #=> true ;FI" ;FI"pattern = '**' '/' 'foo' ;FI"IFile.fnmatch(pattern, 'a/b/c/foo', File::FNM_PATHNAME) #=> true ;FI"IFile.fnmatch(pattern, '/a/b/c/foo', File::FNM_PATHNAME) #=> true ;FI"IFile.fnmatch(pattern, 'c:/a/b/c/foo', File::FNM_PATHNAME) #=> true ;FI"JFile.fnmatch(pattern, 'a/.b/c/foo', File::FNM_PATHNAME) #=> false ;FI"ZFile.fnmatch(pattern, 'a/.b/c/foo', File::FNM_PATHNAME | File::FNM_DOTMATCH) #=> true;F: @file0I"{File.fnmatch( pattern, path, [flags] ) -> (true or false) File.fnmatch?( pattern, path, [flags] ) -> (true or false) ;T0[ I"(p1, p2, p3 = v3);FI" dir.c;T