package datakit-server

  1. Overview
  2. Docs

Module Vfs.InodeSource

Inode.t operations.

Sourcetype t

The type for inodes.

Sourceval pp : t Fmt.t

pp is the pretty-printer for inodes.

Sourcetype kind = [
  1. | `File of File.t
  2. | `Dir of Dir.t
]

The type for inode kinds.

Sourceval file : string -> File.t -> t

file name f is the inode t such that basename t is name and kind t is File f.

Sourceval dir : string -> Dir.t -> t

dir name d is the inode t such that basename t is name and kind t is Dir d.

Sourceval basename : t -> string

basenane t is t's basename.

Sourceval set_basename : t -> string -> unit

set_basename t name changes t's basename to name.

Sourceval kind : t -> kind

kind t is t's kind.

Sourceval ino : t -> int64

ino t is a unique "inode number" for the file. If two files have the same inode number, then they are the same file.