D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Dir
/
Filename :
for_fd-c.ri
back
Copy
U:RDoc::AnyMethod[iI"for_fd:ETI"Dir::for_fd;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"QReturns a new \Dir object representing the directory specified by the given ;TI",integer directory file descriptor +fd+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"d0 = Dir.new('..') ;TI" d1 = Dir.for_fd(d0.fileno) ;T:@format0o; ; [I"BNote that the returned +d1+ does not have an associated path:;T@o;; [I"d0.path # => '..' ;TI"d1.path # => nil ;T; 0o; ; [ I"This method uses the ;TI"P{fdopendir()}[https://www.man7.org/linux/man-pages/man3/fdopendir.3p.html] ;TI"%function defined by POSIX 2008; ;TI"Wthe method is not implemented on non-POSIX platforms (raises NotImplementedError).;T: @fileI" dir.c;T:0@omit_headings_from_table_of_contents_below0I"Dir.for_fd(fd) -> dir ;T0[ I" (p1);T@!FI"Dir;TcRDoc::NormalClass00