Module Eio.FsSource
File-system types.
Note: file-system operations, such as opening or deleting files, can be found in the Path module.
Types
Source
type error = | Already_exists of Eio.Exn.Backend.t| Not_found of Eio.Exn.Backend.t| Permission_denied of Eio.Exn.Backend.t| File_too_large| Not_native of string
Source
type create = [ | `Never(*fail if the named file doesn't exist
*)| `If_missing of Eio.File.Unix_perm.t(*create if file doesn't already exist
*)| `Or_truncate of Eio.File.Unix_perm.t(*any existing file is truncated to zero length
*)| `Exclusive of Eio.File.Unix_perm.t(*always create; fail if the file already exists
*)
]When to create a new file.
If a new file is created, the given permissions are used for it.
Note: use the functions in Path to access directories.