To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
Library
Module
Module type
Parameter
Class
Class type
Read Operations
Does the given file exists? See Sys.file_exists
Read a file and return a mutable C-like structure with its contents. Return None
is the file does not exist.
val stat_info : path -> Index.stat_info option Lwt.t
Return the stats of the given file.
Write Operations
lock_file f
is the lock associated to the file f
, which is hold when test_and_set_file
, set_file
and remove_file
are called (if provided to the function calls). Depending on the backend it can be mutexes or flocks.
Write a bigarray to a file. Atomicity is guaranteed if lock
if provided. temp_dir
can be used to create temporary files, By defaut, temp_dir
is Filename.get_temp_dir_name
.
val test_and_set_file :
?temp_dir:string ->
lock:lock ->
path ->
test:Cstruct.t option ->
set:Cstruct.t option ->
bool Lwt.t
Atomic update of file contents. temp_dir
can be used to create temporary files, By defaut, temp_dir
is Filename.get_temp_dir_name
.
Remove a file. Atomicity is guaranteed if lock
is provided.
Remove a directory, recursively. All the files it contains will be deleted, without taking any lock, so use remove_file
recursively first for atomicity guarantees.