Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
}
}
+// Save modifications to the indicated collection in srcfs, then (if
+// successful) ensure they are also reflected in dstfs.
func (h *handler) syncCollection(srcfs, dstfs arvados.CustomFileSystem, path string) error {
coll, _ := h.determineCollection(srcfs, path)
if coll == nil || coll.UUID == "" {
}
defer d.Close()
err = d.Sync()
+ if err != nil {
+ return err
+ }
snap, err := d.Snapshot()
if err != nil {
return err