Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.217.130
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
share /
ri /
1.9.1 /
system /
Pathname /
Delete
Unzip
Name
Size
Permission
Date
Action
%2b-i.ri
609
B
-rw-r--r--
2023-07-26 17:26
%3c%3d%3e-i.ri
241
B
-rw-r--r--
2023-07-26 17:26
%3d%3d%3d-i.ri
374
B
-rw-r--r--
2023-07-26 17:26
%3d%3d-i.ri
372
B
-rw-r--r--
2023-07-26 17:26
absolute%3f-i.ri
322
B
-rw-r--r--
2023-07-26 17:26
add_trailing_separator-i.ri
272
B
-rw-r--r--
2023-07-26 17:26
ascend-i.ri
907
B
-rw-r--r--
2023-07-26 17:26
atime-i.ri
243
B
-rw-r--r--
2023-07-26 17:26
basename-i.ri
273
B
-rw-r--r--
2023-07-26 17:26
binread-i.ri
366
B
-rw-r--r--
2023-07-26 17:26
blockdev%3f-i.ri
232
B
-rw-r--r--
2023-07-26 17:26
cdesc-Pathname.ri
9.26
KB
-rw-r--r--
2023-07-26 17:26
chardev%3f-i.ri
229
B
-rw-r--r--
2023-07-26 17:26
children-i.ri
1.14
KB
-rw-r--r--
2023-07-26 17:26
chmod-i.ri
240
B
-rw-r--r--
2023-07-26 17:26
chop_basename-i.ri
272
B
-rw-r--r--
2023-07-26 17:26
chown-i.ri
255
B
-rw-r--r--
2023-07-26 17:26
cleanpath-i.ri
667
B
-rw-r--r--
2023-07-26 17:26
cleanpath_aggressive-i.ri
338
B
-rw-r--r--
2023-07-26 17:26
cleanpath_conservative-i.ri
194
B
-rw-r--r--
2023-07-26 17:26
ctime-i.ri
271
B
-rw-r--r--
2023-07-26 17:26
del_trailing_separator-i.ri
198
B
-rw-r--r--
2023-07-26 17:26
delete-i.ri
292
B
-rw-r--r--
2023-07-26 17:26
descend-i.ri
909
B
-rw-r--r--
2023-07-26 17:26
directory%3f-i.ri
235
B
-rw-r--r--
2023-07-26 17:26
dirname-i.ri
271
B
-rw-r--r--
2023-07-26 17:26
each_child-i.ri
1.25
KB
-rw-r--r--
2023-07-26 17:26
each_entry-i.ri
403
B
-rw-r--r--
2023-07-26 17:26
each_filename-i.ri
437
B
-rw-r--r--
2023-07-26 17:26
each_line-i.ri
722
B
-rw-r--r--
2023-07-26 17:26
entries-i.ri
439
B
-rw-r--r--
2023-07-26 17:26
eql%3f-i.ri
376
B
-rw-r--r--
2023-07-26 17:26
executable%3f-i.ri
238
B
-rw-r--r--
2023-07-26 17:26
executable_real%3f-i.ri
253
B
-rw-r--r--
2023-07-26 17:26
exist%3f-i.ri
223
B
-rw-r--r--
2023-07-26 17:26
expand_path-i.ri
241
B
-rw-r--r--
2023-07-26 17:26
extname-i.ri
253
B
-rw-r--r--
2023-07-26 17:26
file%3f-i.ri
220
B
-rw-r--r--
2023-07-26 17:26
find-i.ri
637
B
-rw-r--r--
2023-07-26 17:26
fnmatch%3f-i.ri
410
B
-rw-r--r--
2023-07-26 17:26
fnmatch-i.ri
408
B
-rw-r--r--
2023-07-26 17:26
freeze-i.ri
156
B
-rw-r--r--
2023-07-26 17:26
ftype-i.ri
274
B
-rw-r--r--
2023-07-26 17:26
getwd-c.ri
270
B
-rw-r--r--
2023-07-26 17:26
glob-c.ri
261
B
-rw-r--r--
2023-07-26 17:26
grpowned%3f-i.ri
232
B
-rw-r--r--
2023-07-26 17:26
has_trailing_separator%3f-i.ri
275
B
-rw-r--r--
2023-07-26 17:26
join-i.ri
369
B
-rw-r--r--
2023-07-26 17:26
lchmod-i.ri
221
B
-rw-r--r--
2023-07-26 17:26
lchown-i.ri
225
B
-rw-r--r--
2023-07-26 17:26
lstat-i.ri
216
B
-rw-r--r--
2023-07-26 17:26
make_link-i.ri
292
B
-rw-r--r--
2023-07-26 17:26
make_symlink-i.ri
294
B
-rw-r--r--
2023-07-26 17:26
mkdir-i.ri
256
B
-rw-r--r--
2023-07-26 17:26
mkpath-i.ri
318
B
-rw-r--r--
2023-07-26 17:26
mountpoint%3f-i.ri
276
B
-rw-r--r--
2023-07-26 17:26
mtime-i.ri
249
B
-rw-r--r--
2023-07-26 17:26
new-c.ri
346
B
-rw-r--r--
2023-07-26 17:26
open-i.ri
278
B
-rw-r--r--
2023-07-26 17:26
opendir-i.ri
218
B
-rw-r--r--
2023-07-26 17:26
owned%3f-i.ri
223
B
-rw-r--r--
2023-07-26 17:26
parent-i.ri
315
B
-rw-r--r--
2023-07-26 17:26
pipe%3f-i.ri
220
B
-rw-r--r--
2023-07-26 17:26
plus-i.ri
170
B
-rw-r--r--
2023-07-26 17:26
prepend_prefix-i.ri
193
B
-rw-r--r--
2023-07-26 17:26
pwd-c.ri
266
B
-rw-r--r--
2023-07-26 17:26
read-i.ri
420
B
-rw-r--r--
2023-07-26 17:26
readable%3f-i.ri
232
B
-rw-r--r--
2023-07-26 17:26
readable_real%3f-i.ri
247
B
-rw-r--r--
2023-07-26 17:26
readlines-i.ri
459
B
-rw-r--r--
2023-07-26 17:26
readlink-i.ri
246
B
-rw-r--r--
2023-07-26 17:26
realdirpath-i.ri
450
B
-rw-r--r--
2023-07-26 17:26
realpath-i.ri
440
B
-rw-r--r--
2023-07-26 17:26
relative%3f-i.ri
231
B
-rw-r--r--
2023-07-26 17:26
relative_path_from-i.ri
692
B
-rw-r--r--
2023-07-26 17:26
rename-i.ri
239
B
-rw-r--r--
2023-07-26 17:26
rmdir-i.ri
249
B
-rw-r--r--
2023-07-26 17:26
rmtree-i.ri
268
B
-rw-r--r--
2023-07-26 17:26
root%3f-i.ri
496
B
-rw-r--r--
2023-07-26 17:26
setgid%3f-i.ri
226
B
-rw-r--r--
2023-07-26 17:26
setuid%3f-i.ri
226
B
-rw-r--r--
2023-07-26 17:26
size%3f-i.ri
220
B
-rw-r--r--
2023-07-26 17:26
size-i.ri
217
B
-rw-r--r--
2023-07-26 17:26
socket%3f-i.ri
226
B
-rw-r--r--
2023-07-26 17:26
split-i.ri
269
B
-rw-r--r--
2023-07-26 17:26
split_names-i.ri
254
B
-rw-r--r--
2023-07-26 17:26
stat-i.ri
252
B
-rw-r--r--
2023-07-26 17:26
sticky%3f-i.ri
226
B
-rw-r--r--
2023-07-26 17:26
sub-i.ri
246
B
-rw-r--r--
2023-07-26 17:26
sub_ext-i.ri
385
B
-rw-r--r--
2023-07-26 17:26
symlink%3f-i.ri
229
B
-rw-r--r--
2023-07-26 17:26
sysopen-i.ri
287
B
-rw-r--r--
2023-07-26 17:26
taint-i.ri
154
B
-rw-r--r--
2023-07-26 17:26
to_path-i.ri
419
B
-rw-r--r--
2023-07-26 17:26
to_s-i.ri
413
B
-rw-r--r--
2023-07-26 17:26
truncate-i.ri
265
B
-rw-r--r--
2023-07-26 17:26
unlink-i.ri
292
B
-rw-r--r--
2023-07-26 17:26
untaint-i.ri
158
B
-rw-r--r--
2023-07-26 17:26
utime-i.ri
265
B
-rw-r--r--
2023-07-26 17:26
world_readable%3f-i.ri
250
B
-rw-r--r--
2023-07-26 17:26
world_writable%3f-i.ri
250
B
-rw-r--r--
2023-07-26 17:26
writable%3f-i.ri
232
B
-rw-r--r--
2023-07-26 17:26
writable_real%3f-i.ri
247
B
-rw-r--r--
2023-07-26 17:26
zero%3f-i.ri
220
B
-rw-r--r--
2023-07-26 17:26
Save
Rename
U:RDoc::NormalClass[iI" Pathname:EF@I"Object;Fo:RDoc::Markup::Document:@parts[o;;[8S:RDoc::Markup::Heading: leveli: textI" Pathname;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[ I"IPathname represents a pathname which locates a file in a filesystem.;TI"4The pathname depends on OS: Unix, Windows, etc.;TI"7Pathname library works with pathnames of local OS.;TI"=However non-Unix pathnames are supported experimentally.;T@o; ;[I"+It does not represent the file itself.;TI"GA Pathname can be relative or absolute. It's not until you try to;TI"Lreference the file that it even matters whether the file exists or not.;T@o; ;[I"EPathname is immutable. It has no method for destructive update.;T@o; ;[ I"OThe value of this class is to manipulate file path information in a neater;TI"Iway than standard Ruby provides. The examples below demonstrate the;TI"Pdifference. *All* functionality from File, FileTest, and some from Dir and;TI"SFileUtils is included, in an unsurprising way. It is essentially a facade for;TI"all of these, and more.;T@S; ; i;I" Examples;T@S; ; i;I"Example 1: Using Pathname;T@o:RDoc::Markup::Verbatim;[I"require 'pathname' ;FI"(pn = Pathname.new("/usr/bin/ruby") ;FI")size = pn.size # 27662 ;FI")isdir = pn.directory? # false ;FI"5dir = pn.dirname # Pathname:/usr/bin ;FI"1base = pn.basename # Pathname:ruby ;FI"Fdir, base = pn.split # [Pathname:/usr/bin, Pathname:ruby] ;FI"data = pn.read ;FI"pn.open { |f| _ } ;FI"pn.each_line { |line| _ } ;FS; ; i;I"#Example 2: Using standard Ruby;T@o;;[I"pn = "/usr/bin/ruby" ;FI")size = File.size(pn) # 27662 ;FI")isdir = File.directory?(pn) # false ;FI".dir = File.dirname(pn) # "/usr/bin" ;FI"*base = File.basename(pn) # "ruby" ;FI"8dir, base = File.split(pn) # ["/usr/bin", "ruby"] ;FI"data = File.read(pn) ;FI"File.open(pn) { |f| _ } ;FI"#File.foreach(pn) { |line| _ } ;FS; ; i;I" Example 3: Special features;T@o;;[I"9p1 = Pathname.new("/usr/lib") # Pathname:/usr/lib ;FI"Bp2 = p1 + "ruby/1.8" # Pathname:/usr/lib/ruby/1.8 ;FI"5p3 = p1.parent # Pathname:/usr ;FI"=p4 = p2.relative_path_from(p3) # Pathname:lib/ruby/1.8 ;FI"<pwd = Pathname.pwd # Pathname:/home/gavin ;FI",pwd.absolute? # true ;FI"2p5 = Pathname.new "." # Pathname:. ;FI"Bp5 = p5 + "music/../articles" # Pathname:music/../articles ;FI"9p5.cleanpath # Pathname:articles ;FI"Ep5.realpath # Pathname:/home/gavin/articles ;FI"Rp5.children # [Pathname:/home/gavin/articles/linux, ...] ;FS; ; i;I"Breakdown of functionality;T@S; ; i;I"Core methods;T@o; ;[I"HThese methods are effectively manipulating a String, because that's;TI"Eall a path is. Except for #mountpoint?, #children, #each_child,;TI"B#realdirpath and #realpath, they don't access the filesystem.;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o; ;[I"+;To;;0;[o; ;[I" #join;To;;0;[o; ;[I"#parent;To;;0;[o; ;[I"#root?;To;;0;[o; ;[I"#absolute?;To;;0;[o; ;[I"#relative?;To;;0;[o; ;[I"#relative_path_from;To;;0;[o; ;[I"#each_filename;To;;0;[o; ;[I"#cleanpath;To;;0;[o; ;[I"#realpath;To;;0;[o; ;[I"#realdirpath;To;;0;[o; ;[I"#children;To;;0;[o; ;[I"#each_child;To;;0;[o; ;[I"#mountpoint?;T@S; ; i;I""File status predicate methods;T@o; ;[I"-These methods are a facade for FileTest:;To;;;;[o;;0;[o; ;[I"#blockdev?;To;;0;[o; ;[I"#chardev?;To;;0;[o; ;[I"#directory?;To;;0;[o; ;[I"#executable?;To;;0;[o; ;[I"#executable_real?;To;;0;[o; ;[I"#exist?;To;;0;[o; ;[I"#file?;To;;0;[o; ;[I"#grpowned?;To;;0;[o; ;[I"#owned?;To;;0;[o; ;[I"#pipe?;To;;0;[o; ;[I"#readable?;To;;0;[o; ;[I"#world_readable?;To;;0;[o; ;[I"#readable_real?;To;;0;[o; ;[I" #setgid?;To;;0;[o; ;[I" #setuid?;To;;0;[o; ;[I" #size;To;;0;[o; ;[I"#size?;To;;0;[o; ;[I" #socket?;To;;0;[o; ;[I" #sticky?;To;;0;[o; ;[I"#symlink?;To;;0;[o; ;[I"#writable?;To;;0;[o; ;[I"#world_writable?;To;;0;[o; ;[I"#writable_real?;To;;0;[o; ;[I"#zero?;T@S; ; i;I"+File property and manipulation methods;T@o; ;[I")These methods are a facade for File:;To;;;;[o;;0;[o; ;[I"#atime;To;;0;[o; ;[I"#ctime;To;;0;[o; ;[I"#mtime;To;;0;[o; ;[I"#chmod(mode);To;;0;[o; ;[I"#lchmod(mode);To;;0;[o; ;[I"#chown(owner, group);To;;0;[o; ;[I"#lchown(owner, group);To;;0;[o; ;[I"#fnmatch(pattern, *args);To;;0;[o; ;[I"#fnmatch?(pattern, *args);To;;0;[o; ;[I"#ftype;To;;0;[o; ;[I"#make_link(old);To;;0;[o; ;[I"#open(*args, &block);To;;0;[o; ;[I"#readlink;To;;0;[o; ;[I"#rename(to);To;;0;[o; ;[I" #stat;To;;0;[o; ;[I"#lstat;To;;0;[o; ;[I"#make_symlink(old);To;;0;[o; ;[I"#truncate(length);To;;0;[o; ;[I"#utime(atime, mtime);To;;0;[o; ;[I"#basename(*args);To;;0;[o; ;[I" #dirname;To;;0;[o; ;[I" #extname;To;;0;[o; ;[I"#expand_path(*args);To;;0;[o; ;[I"#split;T@S; ; i;I"Directory methods;T@o; ;[I"(These methods are a facade for Dir:;To;;;;[o;;0;[o; ;[I"Pathname.glob(*args);To;;0;[o; ;[I""Pathname.getwd / Pathname.pwd;To;;0;[o; ;[I"#rmdir;To;;0;[o; ;[I" #entries;To;;0;[o; ;[I"#each_entry(&block);To;;0;[o; ;[I"#mkdir(*args);To;;0;[o; ;[I"#opendir(*args);T@S; ; i;I"IO;T@o; ;[I"'These methods are a facade for IO:;To;;;;[ o;;0;[o; ;[I"#each_line(*args, &block);To;;0;[o; ;[I"#read(*args);To;;0;[o; ;[I"#binread(*args);To;;0;[o; ;[I"#readlines(*args);To;;0;[o; ;[I"#sysopen(*args);T@S; ; i;I"Utilities;T@o; ;[I"@These methods are a mixture of Find, FileUtils, and others:;To;;;;[ o;;0;[o; ;[I"#find(&block);To;;0;[o; ;[I"#mkpath;To;;0;[o; ;[I"#rmtree;To;;0;[o; ;[I"#unlink / #delete;T@S; ; i;I"Method documentation;T@o; ;[ I"RAs the above section shows, most of the methods in Pathname are facades. The;TI"Ldocumentation for these methods generally just says, for instance, "See;TI"LFileTest.writable?", as you should be familiar with the original method;TI"Hanyway, and its documentation (e.g. through +ri+) will contain more;TI"Binformation. In some cases, a brief description will follow.;T: @fileI"ext/pathname/pathname.c;T;0[ [[I"SEPARATOR_LIST;Fo;;[ ;0I"!ext/pathname/lib/pathname.rb;T[I"SEPARATOR_PAT;Fo;;[ ;0@[ [[I" class;F[[:public[ [I" getwd;T@ [I" glob;T@ [I"new;F@ [I"pwd;T@ [:protected[ [:private[ [I" instance;F[[;[_[I"+;F@[I"<=>;T@ [I"==;T@ [I"===;T@ [I"absolute?;F@[I"ascend;F@[I" atime;T@ [I" basename;T@ [I"binread;T@ [I"blockdev?;T@ [I" chardev?;T@ [I" children;F@[I" chmod;T@ [I" chown;T@ [I"cleanpath;F@[I" ctime;T@ [I"delete;T@ [I"descend;F@[I"directory?;T@ [I"dirname;T@ [I"each_child;F@[I"each_entry;T@ [I"each_filename;F@[I"each_line;T@ [I"entries;T@ [I" eql?;T@ [I"executable?;T@ [I"executable_real?;T@ [I"exist?;T@ [I"expand_path;T@ [I"extname;T@ [I" file?;T@ [I" find;F@[I"fnmatch;T@ [I" fnmatch?;T@ [I"freeze;T@ [I" ftype;T@ [I"grpowned?;T@ [I" join;F@[I"lchmod;T@ [I"lchown;T@ [I" lstat;T@ [I"make_link;T@ [I"make_symlink;T@ [I" mkdir;T@ [I"mkpath;F@[I"mountpoint?;F@[I" mtime;T@ [I" open;T@ [I"opendir;T@ [I"owned?;T@ [I"parent;F@[I" pipe?;T@ [I" read;T@ [I"readable?;T@ [I"readable_real?;T@ [I"readlines;T@ [I" readlink;T@ [I"realdirpath;T@ [I" realpath;T@ [I"relative?;F@[I"relative_path_from;F@[I"rename;T@ [I" rmdir;T@ [I"rmtree;F@[I" root?;F@[I"setgid?;T@ [I"setuid?;T@ [I" size;T@ [I" size?;T@ [I"socket?;T@ [I" split;T@ [I" stat;T@ [I"sticky?;T@ [I"sub;T@ [I"sub_ext;T@ [I" symlink?;T@ [I"sysopen;T@ [I" taint;T@ [I"to_path;T@ [I" to_s;T@ [I" truncate;T@ [I"unlink;T@ [I"untaint;T@ [I" utime;T@ [I"world_readable?;T@ [I"world_writable?;T@ [I"writable?;T@ [I"writable_real?;T@ [I" zero?;T@ [;[ [;[[I"add_trailing_separator;F@[I"chop_basename;F@[I"cleanpath_aggressive;F@[I"cleanpath_conservative;F@[I"del_trailing_separator;F@[I"has_trailing_separator?;F@[I" plus;F@[I"prepend_prefix;F@[I"split_names;F@