X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/Dir
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Dir
/
📄
%5b%5d-c.yaml
(397 B)
ðŸ“
..
📄
cdesc-Dir.yaml
(1.97 KB)
📄
chdir-c.yaml
(1.46 KB)
📄
chroot-c.yaml
(420 B)
📄
close-i.yaml
(425 B)
📄
delete-c.yaml
(387 B)
📄
each-i.yaml
(629 B)
📄
entries-c.yaml
(547 B)
📄
foreach-c.yaml
(643 B)
📄
getwd-c.yaml
(451 B)
📄
glob-c.yaml
(3.46 KB)
📄
inspect-i.yaml
(269 B)
📄
mkdir-c.yaml
(605 B)
📄
mktmpdir-c.yaml
(2.34 KB)
📄
new-c.yaml
(277 B)
📄
open-c.yaml
(510 B)
📄
path-i.yaml
(397 B)
📄
pos%3d-i.yaml
(636 B)
📄
pos-i.yaml
(468 B)
📄
pwd-c.yaml
(447 B)
📄
read-i.yaml
(526 B)
📄
rewind-i.yaml
(461 B)
📄
rmdir-c.yaml
(385 B)
📄
seek-i.yaml
(699 B)
📄
tell-i.yaml
(470 B)
📄
tmpdir-c.yaml
(251 B)
📄
unlink-c.yaml
(387 B)
Editing: mktmpdir-c.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: path comment: - !ruby/struct:SM::Flow::P body: Dir.mktmpdir creates a temporary directory. - !ruby/struct:SM::Flow::P body: The directory is created with 0700 permission. - !ruby/struct:SM::Flow::P body: The prefix and suffix of the name of the directory is specified by the optional first argument, <em>prefix_suffix</em>. - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "-" body: If it is not specified or nil, "d" is used as the prefix and no suffix is used. - !ruby/struct:SM::Flow::LI label: "-" body: If it is a string, it is used as the prefix and no suffix is used. - !ruby/struct:SM::Flow::LI label: "-" body: If it is an array, first element is used as the prefix and second element is used as a suffix. type: :BULLET - !ruby/struct:SM::Flow::VERB body: " Dir.mktmpdir {|dir| dir is ".../d..." }\n Dir.mktmpdir("foo") {|dir| dir is ".../foo..." }\n Dir.mktmpdir(["foo", "bar"]) {|dir| dir is ".../foo...bar" }\n" - !ruby/struct:SM::Flow::P body: The directory is created under Dir.tmpdir or the optional second argument <em>tmpdir</em> if non-nil value is given. - !ruby/struct:SM::Flow::VERB body: " Dir.mktmpdir {|dir| dir is "#{Dir.tmpdir}/d..." }\n Dir.mktmpdir(nil, "/var/tmp") {|dir| dir is "/var/tmp/d..." }\n" - !ruby/struct:SM::Flow::P body: If a block is given, it is yielded with the path of the directory. The directory and its contents are removed using FileUtils.remove_entry_secure before Dir.mktmpdir returns. The value of the block is returned. - !ruby/struct:SM::Flow::VERB body: " Dir.mktmpdir {|dir|\n # use the directory...\n open("#{dir}/foo", "w") { ... }\n }\n" - !ruby/struct:SM::Flow::P body: If a block is not given, The path of the directory is returned. In this case, Dir.mktmpdir doesn't remove the directory. - !ruby/struct:SM::Flow::VERB body: " dir = Dir.mktmpdir\n begin\n # use the directory...\n open("#{dir}/foo", "w") { ... }\n ensure\n # remove the directory.\n FileUtils.remove_entry_secure dir\n end\n" full_name: Dir::mktmpdir is_singleton: true name: mktmpdir params: (prefix_suffix=nil, tmpdir=nil) {|path| ...} visibility: public
Upload File
Create Folder