Working on automatic rmdom for bad domains during regen
[hcoop/domtool2.git] / src / slave.sig
index c1706bf..c413a07 100644 (file)
@@ -22,9 +22,11 @@ signature SLAVE = sig
 
     datatype file_action =
             Add
-          | Delete
+          | Delete of bool (* Set to true to really delete the file *)
           | Modify
 
+    val isDelete : file_action -> bool
+
     type file_status = {action : file_action,
                        domain : string,
                        dir : string,
@@ -70,4 +72,9 @@ signature SLAVE = sig
     val mkDirAll : string -> unit
     (* [mkDirAll p] creates directory "p", creating all parent directories, as
      * necessary. *)
+
+    val remove : ''a list * ''a -> ''a list
+    val removeDups : ''a list -> ''a list
+
+    val moveDirCreate : { from : string, to : string } -> unit
 end