PHP 8.2.31
Preview: chdir-c.yaml Size: 1.46 KB
/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Dir/chdir-c.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Changes the current working directory of the process to the given string. When called without an argument, changes the directory to the value of the environment variable <tt>HOME</tt>, or <tt>LOGDIR</tt>. <tt>SystemCallError</tt> (probably <tt>Errno::ENOENT</tt>) if the target directory does not exist.
- !ruby/struct:SM::Flow::P 
  body: If a block is given, it is passed the name of the new current directory, and the block is executed with that as the current directory. The original working directory is restored when the block exits. The return value of <tt>chdir</tt> is the value of the block. <tt>chdir</tt> blocks can be nested, but in a multi-threaded program an error will be raised if a thread attempts to open a <tt>chdir</tt> block while another thread has one open.
- !ruby/struct:SM::Flow::VERB 
  body: "   Dir.chdir(&quot;/var/spool/mail&quot;)\n   puts Dir.pwd\n   Dir.chdir(&quot;/tmp&quot;) do\n     puts Dir.pwd\n     Dir.chdir(&quot;/usr&quot;) do\n       puts Dir.pwd\n     end\n     puts Dir.pwd\n   end\n   puts Dir.pwd\n"
- !ruby/struct:SM::Flow::P 
  body: <em>produces:</em>
- !ruby/struct:SM::Flow::VERB 
  body: "   /var/spool/mail\n   /tmp\n   /usr\n   /tmp\n   /var/spool/mail\n"
full_name: Dir::chdir
is_singleton: true
name: chdir
params: |
  Dir.chdir( [ string] ) => 0
  Dir.chdir( [ string] ) {| path | block }  => anObject

visibility: public

Directory Contents

Dirs: 0 × Files: 27

Name Size Perms Modified Actions
397 B lrw-r--r-- 2023-07-26 13:47:06
Edit Download
1.97 KB lrw-r--r-- 2023-07-26 13:47:06
Edit Download
1.46 KB lrw-r--r-- 2023-07-26 13:47:06
Edit Download
420 B lrw-r--r-- 2023-07-26 13:47:06
Edit Download
425 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
387 B lrw-r--r-- 2023-07-26 13:47:06
Edit Download
629 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
547 B lrw-r--r-- 2023-07-26 13:47:06
Edit Download
643 B lrw-r--r-- 2023-07-26 13:47:06
Edit Download
451 B lrw-r--r-- 2023-07-26 13:47:06
Edit Download
3.46 KB lrw-r--r-- 2023-07-26 13:47:07
Edit Download
269 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
605 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
2.34 KB lrw-r--r-- 2023-07-26 13:47:07
Edit Download
277 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
510 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
397 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
636 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
468 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
447 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
526 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
461 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
385 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
699 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
470 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
251 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download
387 B lrw-r--r-- 2023-07-26 13:47:07
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).