File: os.mli

package info (click to toggle)
unison2.9.1 2.9.1-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,500 kB
  • ctags: 2,294
  • sloc: ml: 15,015; makefile: 378; sh: 215; ansic: 8
file content (34 lines) | stat: -rw-r--r-- 1,368 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(* $I1: Unison file synchronizer: src/os.mli $ *)
(* $I2: Last modified by bcpierce on Sun, 24 Mar 2002 11:24:03 -0500 $ *)
(* $I3: Copyright 1999-2002 (see COPYING for details) $ *)

val myCanonicalHostName : string

val tempPath : Fspath.t -> Path.t -> Path.t
val backupPath : Fspath.t -> Path.t -> Path.t

val createUnisonDir : unit -> unit
val fileInUnisonDir : string -> Fspath.t
val unisonDir : Fspath.t

val childrenOf : Fspath.t -> Path.t -> string list
val readLink : Fspath.t -> Path.t -> string
val symlink : Fspath.t -> Path.t -> string -> unit

val rename : Fspath.t -> Path.t -> Fspath.t -> Path.t -> unit
val createDir : Fspath.t -> Path.t -> Props.t -> unit
val delete : Fspath.t -> Path.t -> unit

type fingerprint
val fingerprint : Fspath.t -> Path.t -> fingerprint
val fingerprint2string : fingerprint -> string
val fingerprintString : string -> fingerprint
val safeFingerprint :
  Fspath.t -> Path.t ->       (* coordinates of file to fingerprint *)
  Fileinfo.t ->               (* old fileinfo *)
  (fingerprint option) ->  (* old fingerprint, if available *)
  Fileinfo.t * fingerprint (* current fileinfo and fingerprint *)

(* Verify that the parent of the given path refers to a directory in the     *)
(* local filesystem.  Raise a Fatal error if not.                            *)
val checkThatParentPathIsADir : Fspath.t -> Path.t -> unit