Skip to content
Snippets Groups Projects
Commit ce80cb58 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

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
parent e2f7af41
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment