From ce80cb589120a978c8896c15f50ad433c470d51a Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Wed, 21 Feb 2018 17:57:55 +0100
Subject: [PATCH] Explicitly set DirectoryCopyFlags to "timestamps".

This parameter has a different default setting with RoboCopy in the
Server 2012 version: "DA" (data and attributes), compared to "T"
(timestamps) on e.g. Windows 7.

Forcing this setting to be the same for 2012 and 7 seems to fix the
issue of files not being transferred. More testing is needed though!

Refers to #11
---
 ATxService/RoboCommand.cs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ATxService/RoboCommand.cs b/ATxService/RoboCommand.cs
index 6a0aa79..36dd9d6 100644
--- a/ATxService/RoboCommand.cs
+++ b/ATxService/RoboCommand.cs
@@ -75,6 +75,8 @@ namespace ATxService
                 // _roboCommand.CopyOptions.CopyAll = true;
                 _roboCommand.CopyOptions.CopyFlags = "DT";
 
+                _roboCommand.CopyOptions.DirectoryCopyFlags = "T";
+
                 // select options
                 _roboCommand.SelectionOptions.ExcludeOlder = true;
                 // retry options
-- 
GitLab