| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Find/ |
Upload File : |
U:RDoc::NormalModule[iI" Find:EF@0o:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Paragraph;[I"NThe +Find+ module supports the top-down traversal of a set of file paths.;To:RDoc::Markup::BlankLine o; ;[I"LFor example, to total the size of all files under your home directory, ;TI">ignoring anything in a "dot" directory (e.g. $HOME/.ssh):;T@o:RDoc::Markup::Verbatim;[I"require 'find' ;TI" ;TI"total_size = 0 ;TI" ;TI"&Find.find(ENV["HOME"]) do |path| ;TI"$ if FileTest.directory?(path) ;TI") if File.basename(path)[0] == ?. ;TI"J Find.prune # Don't look any further into this directory. ;TI" else ;TI" next ;TI" end ;TI" else ;TI"+ total_size += FileTest.size(path) ;TI" end ;TI"end;T:@format0: @fileI"lib/find.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[[I" find;FI"lib/find.rb;T[I" prune;F@1[:protected[ [:private[ [I" instance;T[[;[ [;[ [;[[@0@1[@3@1[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@%@%cRDoc::TopLevel