HCoop
/
hcoop
/
domtool2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Be more cautious creating log directories
[hcoop/domtool2.git]
/
src
/
slave.sml
diff --git
a/src/slave.sml
b/src/slave.sml
index
b0148f1
..
719b417
100644
(file)
--- a/
src/slave.sml
+++ b/
src/slave.sml
@@
-56,7
+56,12
@@
fun registerPostHandler handler =
end
fun handleChanges fs = (!preHandler ();
end
fun handleChanges fs = (!preHandler ();
- app (!fileHandler) fs;
+ app (fn recd as {action, file, ...} =>
+ (!fileHandler recd;
+ if action = Delete andalso Posix.FileSys.access (file, []) then
+ OS.FileSys.remove file
+ else
+ ())) fs;
!postHandler ())
fun shell ss = OS.Process.isSuccess (OS.Process.system (String.concat ss))
!postHandler ())
fun shell ss = OS.Process.isSuccess (OS.Process.system (String.concat ss))