D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Kernel
/
Filename :
test-i.ri
back
Copy
U:RDoc::AnyMethod[iI" test:ETI"Kernel#test;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"~Performs a test on one or both of the <i>filesystem entities</i> at the given paths <code>path0</code> and <code>path1</code>:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"gEach path <code>path0</code> or <code>path1</code> points to a file, directory, device, pipe, etc.;To;;0; [o; ; [I"9Character <code>char</code> selects a specific test.;To; ; [I"The tests:;To;;; ;[ o;;0; [o; ; [I"�Each of these tests operates only on the entity at <code>path0</code>, and returns <code>true</code> or <code>false</code>; for a non-existent entity, returns <code>false</code> (does not raise exception):;Fo:RDoc::Markup::Table:@header[I"Character;FI" Test;F:@align[:center: left: @body[[I"<tt>'b'</tt>;FI"*Whether the entity is a block device.;F[I"<tt>'c'</tt>;FI".Whether the entity is a character device.;F[I"<tt>'d'</tt>;FI"'Whether the entity is a directory.;F[I"<tt>'e'</tt>;FI".Whether the entity is an existing entity.;F[I"<tt>'f'</tt>;FI"4Whether the entity is an existing regular file.;F[I"<tt>'g'</tt>;FI",Whether the entity's setgid bit is set.;F[I"<tt>'G'</tt>;FI"CWhether the entity's group ownership is equal to the caller's.;F[I"<tt>'k'</tt>;FI",Whether the entity's sticky bit is set.;F[I"<tt>'l'</tt>;FI"+Whether the entity is a symbolic link.;F[I"<tt>'o'</tt>;FI"?Whether the entity is owned by the caller's effective uid.;F[I"<tt>'O'</tt>;FI"FLike <tt>'o'</tt>, but uses the real uid (not the effective uid).;F[I"<tt>'p'</tt>;FI"6Whether the entity is a FIFO device (named pipe).;F[I"<tt>'r'</tt>;FI"FWhether the entity is readable by the caller's effective uid/gid.;F[I"<tt>'R'</tt>;FI"NLike <tt>'r'</tt>, but uses the real uid/gid (not the effective uid/gid).;F[I"<tt>'S'</tt>;FI"$Whether the entity is a socket.;F[I"<tt>'u'</tt>;FI",Whether the entity's setuid bit is set.;F[I"<tt>'w'</tt>;FI"FWhether the entity is writable by the caller's effective uid/gid.;F[I"<tt>'W'</tt>;FI"NLike <tt>'w'</tt>, but uses the real uid/gid (not the effective uid/gid).;F[I"<tt>'x'</tt>;FI"HWhether the entity is executable by the caller's effective uid/gid.;F[I"<tt>'X'</tt>;FI"NLike <tt>'x'</tt>, but uses the real uid/gid (not the effective uid/git).;F[I"<tt>'z'</tt>;FI"5Whether the entity exists and is of length zero.;Fo;;0; [o; ; [I"hThis test operates only on the entity at <code>path0</code>, and returns an integer size or +nil+:;Fo;;[I"Character;FI" Test;F;[;;;[[I"<tt>'s'</tt>;FI"aReturns positive integer size if the entity exists and has non-zero length, +nil+ otherwise.;Fo;;0; [o; ; [I"�Each of these tests operates only on the entity at <code>path0</code>, and returns a Time object; raises an exception if the entity does not exist:;Fo;;[I"Character;FI" Test;F;[;;;[[I"<tt>'A'</tt>;FI"%Last access time for the entity.;F[I"<tt>'C'</tt>;FI"%Last change time for the entity.;F[I"<tt>'M'</tt>;FI"+Last modification time for the entity.;Fo;;0; [o; ; [I"Each of these tests operates on the modification time (<code>mtime</code>) of each of the entities at <code>path0</code> and <code>path1</code>, and returns a <code>true</code> or <code>false</code>; returns <code>false</code> if either entity does not exist:;Fo;;[I"Character;FI" Test;F;[;;;[[I"<tt>'<'</tt>;FI"AWhether the `mtime` at `path0` is less than that at `path1`.;F[I"<tt>'='</tt>;FI"@Whether the `mtime` at `path0` is equal to that at `path1`.;F[I"<tt>'>'</tt>;FI"DWhether the `mtime` at `path0` is greater than that at `path1`.;Fo;;0; [o; ; [I"�This test operates on the content of each of the entities at <code>path0</code> and <code>path1</code>, and returns a <code>true</code> or <code>false</code>; returns <code>false</code> if either entity does not exist:;Fo;;[I"Character;FI" Test;F;[;;;[[I"<tt>'-'</tt>;FI"2Whether the entities exist and are identical.;F: @fileI"file.c;T:0@omit_headings_from_table_of_contents_below0I".test(char, path0, path1 = nil) -> object ;T0[ I"(*args);T@�FI"Kernel;TcRDoc::NormalModule00