diff --git a/AutoTx/AutoTx.cs b/AutoTx/AutoTx.cs index 7bab74914ae404701f8ebc326a17e97872ac1eb7..ee469c567d7131fa72abba792c82662a49d5e58c 100644 --- a/AutoTx/AutoTx.cs +++ b/AutoTx/AutoTx.cs @@ -168,6 +168,23 @@ namespace AutoTx configInvalid = true; } + // DestinationDirectory + if (!_config.DestinationDirectory.StartsWith(@"\\")) { + writeLog("WARNING: DestinationDirectory is no UNC path!"); + } + if (!Directory.Exists(_config.DestinationDirectory)) { + writeLog("ERROR: can't find destination: " + _config.DestinationDirectory); + configInvalid = true; + } + + // TmpTransferDir + var tmpTransferPath = Path.Combine(_config.DestinationDirectory, + _config.TmpTransferDir); + if (!Directory.Exists(tmpTransferPath)) { + writeLog("ERROR: temporary transfer dir doesn't exist: " + tmpTransferPath); + configInvalid = true; + } + // ServiceTimer if (_config.ServiceTimer < 1000) { writeLog("ERROR: ServiceTimer must not be smaller than 1000 ms!");