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.
Makes patterns to match short names if existing. Valid only on Microsoft Windows.
open for reading only
open for writing only
open for reading and writing
append on each write
create file if it does not exist
do not block on open or for data to become available
truncate size to 0
disable line code conversion
can delete opened file
any write operation perform synchronously
any write operation perform synchronously except some meta data
do not follow symlinks
do not change atime
Try to minimize cache effects of the I/O to and from this file.
Create an unnamed temporary file
Name of the null device