package plebeia

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

File system via Plebeia

Parameters

Signature

module Name : Fs_intf.NAME with type t = Base.Name.t
module Path : Fs_intf.PATH with type name = Name.t

Path name, a list of names

type name = Name.t

Type of file name

type raw_cursor = Cursor.t

Type for the underlying cursor

type tree

Type of Plebeia tree of a file or a directory

Type for the cursor based file system module, Fs

type view = Node_type.view

Type for the contents of a file or a directory

type hash = Hash.Prefix.t

Hash of a file or a directory

type error = Base.FsError.t

Errors. The first parameter is the name of the failed API function

val make : raw_cursor -> Path.t -> tree

make raw_tree path wraps raw_tree which points to path and returns a tree

val empty : Context.t -> tree

empty context returns a tree pointing the empty file system

val context : tree -> Context.t

Returns the underlying context of the given tree

val get_raw_cursor : tree -> raw_cursor

Get the underlying raw cursor

val of_cursor : cursor -> tree

Conversions between cursor for `Fs` module

val to_cursor : tree -> cursor
module Op : sig ... end
module Op_lwt : sig ... end
module Vc : sig ... end

Version control

module Merkle_proof : sig ... end