In Files
- dir.c
- file.c
Files
- grammar.en.rdoc
- test.ja.rdoc
- contributing.rdoc
- contributors.rdoc
- dtrace_probes.rdoc
- extension.ja.rdoc
- extension.rdoc
- globals.rdoc
- keywords.rdoc
- maintainers.rdoc
- marshal.rdoc
- regexp.rdoc
- security.rdoc
- standard_library.rdoc
- syntax.rdoc
- assignment.rdoc
- calling_methods.rdoc
- control_expressions.rdoc
- exceptions.rdoc
- literals.rdoc
- methods.rdoc
- miscellaneous.rdoc
- modules_and_classes.rdoc
- precedence.rdoc
- refinements.rdoc
- README.ja.rdoc
- README.rdoc
Class/Module Index
- ArgumentError
- Array
- BasicObject
- Bignum
- Binding
- Class
- ClosedQueueError
- Comparable
- Complex
- Complex::compatible
- ConditionVariable
- Continuation
- Data
- Dir
- ENV
- EOFError
- Encoding
- Encoding::CompatibilityError
- Encoding::Converter
- Encoding::ConverterNotFoundError
- Encoding::InvalidByteSequenceError
- Encoding::UndefinedConversionError
- EncodingError
- Enumerable
- Enumerator
- Enumerator::Generator
- Enumerator::Lazy
- Enumerator::Yielder
- Errno
- Exception
- FalseClass
- Fiber
- FiberError
- File
- File::Constants
- File::Stat
- FileTest
- Fixnum
- Float
- FloatDomainError
- GC
- GC::Profiler
- Hash
- IO
- IO::EAGAINWaitReadable
- IO::EAGAINWaitWritable
- IO::EINPROGRESSWaitReadable
- IO::EINPROGRESSWaitWritable
- IO::EWOULDBLOCKWaitReadable
- IO::EWOULDBLOCKWaitWritable
- IO::WaitReadable
- IO::WaitWritable
- IOError
- IndexError
- Integer
- Interrupt
- Kernel
- KeyError
- LoadError
- LocalJumpError
- Marshal
- MatchData
- Math
- Math::DomainError
- Method
- Module
- NameError
- NilClass
- NoMemoryError
- NoMethodError
- NotImplementedError
- Numeric
- Object
- ObjectSpace
- ObjectSpace::WeakMap
- Proc
- Process
- Process::GID
- Process::Status
- Process::Sys
- Process::UID
- Process::Waiter
- Queue
- Random
- Random::Formatter
- Range
- RangeError
- Rational
- Rational::compatible
- Regexp
- RegexpError
- RubyVM
- RubyVM::Env
- RubyVM::InstructionSequence
- RuntimeError
- ScriptError
- SecurityError
- Signal
- SignalException
- SizedQueue
- StandardError
- StopIteration
- String
- Struct
- Symbol
- SyntaxError
- SystemCallError
- SystemExit
- SystemStackError
- Thread
- Thread::Backtrace::Location
- Thread::Mutex
- ThreadError
- ThreadGroup
- Time
- TracePoint
- TrueClass
- TypeError
- UnboundMethod
- UncaughtThrowError
- ZeroDivisionError
- fatal
- unknown
File::Constants
File::Constants provides file-related constants. All possible file constants are listed in the documentation but they may not all be present on your platform.
If the underlying platform doesn't define a constant the corresponding Ruby constant is not defined.
Your platform documentations (e.g. man open(2)) may describe more detailed information.
Constants
- APPEND
append on each write
- BINARY
disable line code conversion
- CREAT
create file if it does not exist
- DIRECT
Try to minimize cache effects of the I/O to and from this file.
- DSYNC
any write operation perform synchronously except some meta data
- EXCL
error if CREAT and the file exists
- FNM_CASEFOLD
Makes File.fnmatch patterns case insensitive (but not Dir.glob patterns).
- FNM_DOTMATCH
The '*' wildcard matches filenames starting with "." in File.fnmatch and Dir.glob patterns
- FNM_EXTGLOB
Allows file globbing through "{a,b}" in File.fnmatch patterns.
- FNM_NOESCAPE
Disables escapes in File.fnmatch and Dir.glob patterns
- FNM_PATHNAME
Wildcards in File.fnmatch and Dir.glob patterns do not match directory separators
- FNM_SHORTNAME
Makes patterns to match short names if existing. Valid only on Microsoft Windows.
- FNM_SYSCASE
System default case insensitiveness, equals to FNM_CASEFOLD or 0.
- LOCK_EX
exclusive lock. see File#flock
- LOCK_NB
non-blocking lock. used with LOCK_SH or LOCK_EX. see File#flock
- LOCK_SH
shared lock. see File#flock
- LOCK_UN
unlock. see File#flock
- NOATIME
do not change atime
- NOCTTY
not to make opened IO the controlling terminal device
- NOFOLLOW
do not follow symlinks
- NONBLOCK
do not block on open or for data to become available
- NULL
Name of the null device
- RDONLY
open for reading only
- RDWR
open for reading and writing
- RSYNC
any read operation perform synchronously. used with SYNC or DSYNC.
- SHARE_DELETE
can delete opened file
- SYNC
any write operation perform synchronously
- TMPFILE
Create an unnamed temporary file
- TRUNC
truncate size to 0
- WRONLY
open for writing only