Class | Kgio::File |
In: |
ext/kgio/accept.c
|
Parent: | File |
path | -> | to_path |
Kgio::File.tryopen(filename, [, mode [, perm]]) -> Kgio::File or Symbol
Returns a Kgio::File object on a successful open. filename is a path to any file on the filesystem. If specified, mode is a bitmask of flags (see IO.sysopen) and perm should be an octal number.
This does not raise errors for most failures, but installs returns a Ruby symbol for the constant in the Errno::* namespace.
Common error symbols are:
See your open(2) manpage for more information on open(2) errors.