package MlFront_Thunk
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Describes and runs reproducible units of work called thunks
Install
dune-project
Dependency
Authors
Maintainers
Sources
MlFront.tar.gz
md5=561d9b7dfc392fcd7413737ac1f6071a
sha512=ec9b2fe9ac45b8429dda4f155f56f73410d1eb12b879e8f826756f2fc3d8fa00d439a75fbd48be9f6dca6cbf3ca691e2b367cd55d227d9a81f77e95cff6d9346
doc/MlFront_Thunk.ThunkIoDisk/MlFront_Thunk_IoDisk/ThunkIoDisk/Make/index.html
Module ThunkIoDisk.MakeSource
Parameters
module S : MlFront_Thunk.ThunkSpawner.S with type 'a t = 'a M.tSignature
include sig ... end
Source
type visitor = | Visitor : {init : 'acc;file : 'acc -> file_object -> ('acc * [ `Next | `Stop ]) M.t;directory : 'acc -> directory_object -> ('acc * [ `Descend | `SkipDir | `Stop ]) M.t;finished : 'acc -> unit M.t;
} -> visitor
Source
and file_object = private {file_path : MlFront_Core.FilePath.t;file_origin : string;parent_directory : directory_object;is_local_file : bool;file_object_of_local_path : MlFront_Core.FilePath.t -> (file_object, string) result M.t;open_for_writing : unit -> [ `Error of string | `Handle of int64 | `IsDirectory of directory_object ] M.t;open_for_reading : unit -> [ `Error of string | `Handle of int64 | `IsDirectory of directory_object ] M.t;probe_eof : int64 -> (bool, string) result M.t;read_some : int64 -> bytes -> int -> int -> [ `Eof | `Error of string | `ReadBytes of int ] M.t;write_all : int64 -> string -> int -> int -> [ `Error of string | `WroteBytes ] M.t;close : int64 -> unit M.t;read_all : unit -> [ `Content of string | `Error of string | `ExceededSizeLimit of int64 ] M.t;prepare_as_copy_destination : unit -> [ `Error of string | `Ready ] M.t;anonymous_file : string -> string -> [ `Anonymous of file_object | `Error of string ] M.t;delete_file : unit -> [ `Deleted | `Error of string ] M.t;delete_file_async : unit -> unit;move_and_own_file : file_object -> [ `Error of string | `Moved ] M.t;checksum_file : dos2unix:bool -> start_at:int64 -> ?len:??? -> algo:[ `BLAKE2b_256 | `None | `SHA1 | `SHA256 ] -> unit -> [ `Checksum of string * int64 | `Error of string ] M.t;
}Source
and directory_object = private {dir_path : MlFront_Core.FilePath.t;dir_origin : string;directory_object_of_local_path : MlFront_Core.FilePath.t -> (directory_object, string) result M.t;child_if_exists : string -> (file_object, directory_object) Either.t option M.t;create_directory : unit -> [ `Created | `Error of string ] M.t;create_directory_async : unit -> unit;anonymous_directory : string -> string -> [ `Anonymous of directory_object | `Error of string ] M.t;visit_directory : visitor -> unit M.t;delete_directory : unit -> [ `Deleted | `Error of string ] M.t;delete_directory_async : unit -> unit;zip_directory_nonatomic : ?intermediate:??? -> dest_file:file_object -> unit -> [ `Error of string | `Zipped ] M.t;spawn_in_directory : ?stdout:??? -> ?stderr:??? -> ?progress:??? -> unix_cmdline:(MlFront_Core.FilePath.t * string list) -> windows_appname:string -> windows_cmdline:string -> envmods:MlFront_Core.EnvMods.t -> unit -> [ `Error of string | `Exited of int | `Signaled of int | `Stopped of int ] M.t;interactive_shell_in_directory : ?promptname:??? -> envmods:MlFront_Core.EnvMods.t -> unit -> [ `Error of string | `Exited of int | `Signaled of int | `Stopped of int ] M.t;
}Source
val generic_file :
file_path:MlFront_Core.FilePath.t ->
origin:string ->
parent_directory:directory_object ->
is_local_file:bool ->
file_object_of_local_path:
(MlFront_Core.FilePath.t -> (file_object, string) result M.t) ->
open_for_writing:
(unit ->
[ `Error of string
| `Handle of int64
| `IsDirectory of directory_object ]
M.t) ->
open_for_reading:
(unit ->
[ `Error of string
| `Handle of int64
| `IsDirectory of directory_object ]
M.t) ->
probe_eof:(int64 -> (bool, string) result M.t) ->
read_some:
(int64 ->
bytes ->
int ->
int ->
[ `Eof | `Error of string | `ReadBytes of int ] M.t) ->
read_all:
(unit ->
[ `Content of string | `Error of string | `ExceededSizeLimit of int64 ]
M.t) ->
write_all:
(int64 -> string -> int -> int -> [ `Error of string | `WroteBytes ] M.t) ->
close:(int64 -> unit M.t) ->
prepare_as_copy_destination:(unit -> [ `Error of string | `Ready ] M.t) ->
anonymous_file:
(string -> string -> [ `Anonymous of file_object | `Error of string ] M.t) ->
delete_file:(unit -> [ `Deleted | `Error of string ] M.t) ->
delete_file_async:(unit -> unit) ->
move_and_own_file:(file_object -> [ `Error of string | `Moved ] M.t) ->
checksum_file:
(dos2unix:bool ->
start_at:int64 ->
?len:??? ->
algo:[ `BLAKE2b_256 | `None | `SHA1 | `SHA256 ] ->
unit ->
[ `Checksum of string * int64 | `Error of string ] M.t) ->
unit ->
file_objectSource
val generic_dir :
dir_path:MlFront_Core.FilePath.t ->
origin:string ->
directory_object_of_local_path:
(MlFront_Core.FilePath.t -> (directory_object, string) result M.t) ->
child_if_exists:
(string -> (file_object, directory_object) Either.t option M.t) ->
create_directory:(unit -> [ `Created | `Error of string ] M.t) ->
create_directory_async:(unit -> unit) ->
anonymous_directory:
(string ->
string ->
[ `Anonymous of directory_object | `Error of string ] M.t) ->
visit_directory:(visitor -> unit M.t) ->
delete_directory:(unit -> [ `Deleted | `Error of string ] M.t) ->
delete_directory_async:(unit -> unit) ->
zip_directory_nonatomic:
(?intermediate:??? ->
dest_file:file_object ->
unit ->
[ `Error of string | `Zipped ] M.t) ->
spawn_in_directory:
(?stdout:??? ->
?stderr:??? ->
?progress:??? ->
unix_cmdline:(MlFront_Core.FilePath.t * string list) ->
windows_appname:string ->
windows_cmdline:string ->
envmods:MlFront_Core.EnvMods.t ->
unit ->
[ `Error of string
| `Exited of int
| `Signaled of int
| `Stopped of int ]
M.t) ->
interactive_shell_in_directory:
(?promptname:??? ->
envmods:MlFront_Core.EnvMods.t ->
unit ->
[ `Error of string
| `Exited of int
| `Signaled of int
| `Stopped of int ]
M.t) ->
unit ->
directory_objectSource
val directory_object_of_local_path :
peer:directory_object ->
MlFront_Core.FilePath.t ->
(directory_object, string) result M.tSource
val child_if_exists :
directory_object ->
string ->
(file_object, directory_object) Either.t option M.tSource
val read_all :
file_object ->
[ `Content of string | `Error of string | `ExceededSizeLimit of int64 ] M.tSource
val copy :
?dos2unix:??? ->
?on_write_total:??? ->
src:file_object ->
dest:file_object ->
unit ->
[ `Copied
| `DestinationIsDirectory of directory_object
| `Error of string
| `SourceIsDirectory of directory_object ]
M.tSource
val copy_or_fail :
?dos2unix:??? ->
?on_write_total:??? ->
src:file_object ->
dest:file_object ->
on_error:(string -> 'a M.t) ->
'a M.t ->
'a M.tSource
val copy_but_error_if_dest_is_dir :
?dos2unix:??? ->
src:file_object ->
dest:file_object ->
unit ->
[ `Copied | `Error of string | `SourceIsDirectory of directory_object ] M.tSource
val checksum_file :
?dos2unix:??? ->
?start_at:??? ->
?len:??? ->
algo:[ `BLAKE2b_256 | `None | `SHA1 | `SHA256 ] ->
file_object ->
[ `Checksum of string * int64 | `Error of string ] M.tSource
val replace_all_bytes :
file_object ->
bytes ->
int ->
int ->
[ `Error of string | `IsDirectory of directory_object | `WroteBytes ] M.tSource
val replace_all_string :
file_object ->
string ->
int ->
int ->
[ `Error of string | `IsDirectory of directory_object | `WroteBytes ] M.tSource
val anonymous_file :
?prefix:??? ->
suffix:string ->
file_object ->
[ `Anonymous of file_object | `Error of string ] M.tSource
val anonymous_directory :
?prefix:??? ->
suffix:string ->
directory_object ->
[ `Anonymous of directory_object | `Error of string ] M.tSource
val spawn_in_directory :
?stdout:??? ->
?stderr:??? ->
?progress:??? ->
unix_cmdline:(MlFront_Core.FilePath.t * string list) ->
windows_appname:string ->
windows_cmdline:string ->
cwd:directory_object ->
envmods:MlFront_Core.EnvMods.t ->
unit ->
[ `Error of string | `Exited of int | `Signaled of int | `Stopped of int ]
M.tSource
val interactive_shell_in_directory :
?promptname:??? ->
envmods:MlFront_Core.EnvMods.t ->
cwd:directory_object ->
unit ->
[ `Error of string | `Exited of int | `Signaled of int | `Stopped of int ]
M.tSource
val zip_directory :
srcdir:directory_object ->
destzip:file_object ->
unit ->
(MlFront_Thunk__ThunkIo.file_digest, string) result M.tSource
val copy_file_or_dir_to_file_and_sha256_or_fail :
?dos2unix:??? ->
?intermediate:??? ->
src:file_object ->
dest:file_object ->
on_error:(string -> 'b M.t) ->
(string -> int64 -> 'b M.t) ->
'b M.tSource
val file_object_of_local_path :
peer:file_object ->
MlFront_Core.FilePath.t ->
(file_object, string) result M.tSource
val open_for_reading :
file_object ->
[ `Error of string | `Handle of handle | `IsDirectory ] M.tSource
val open_for_writing :
file_object ->
[ `Error of string | `Handle of handle | `IsDirectory ] t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page