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

Better name for variable denoting target subdir.

parent dcbbb282
No related branches found
No related tags found
No related merge requests found
...@@ -687,19 +687,19 @@ namespace AutoTx ...@@ -687,19 +687,19 @@ namespace AutoTx
// the default subdir inside the managed directory, where folders will be // the default subdir inside the managed directory, where folders will be
// picked up later by the actual transfer method: // picked up later by the actual transfer method:
var managedSubDir = "PROCESSING"; var target = "PROCESSING";
// if the user has no directory on the destination move to UNMATCHED instead: // if the user has no directory on the destination move to UNMATCHED instead:
if (string.IsNullOrWhiteSpace(DestinationPath(userDir.Name))) { if (string.IsNullOrWhiteSpace(DestinationPath(userDir.Name))) {
writeLog("Found unmatched incoming dir: " + userDir.Name, true); writeLog("Found unmatched incoming dir: " + userDir.Name, true);
managedSubDir = "UNMATCHED"; target = "UNMATCHED";
} }
// now everything that is supposed to be transferred is in a folder, // now everything that is supposed to be transferred is in a folder,
// for example: D:\ATX\PROCESSING\2017-04-02__12-34-56\user00 // for example: D:\ATX\PROCESSING\2017-04-02__12-34-56\user00
var targetDir = Path.Combine(_config.SourceDrive, var targetDir = Path.Combine(_config.SourceDrive,
_config.ManagedDirectory, _config.ManagedDirectory,
managedSubDir, target,
CreateTimestamp(), CreateTimestamp(),
userDir.Name); userDir.Name);
if (MoveAllSubDirs(userDir, targetDir)) if (MoveAllSubDirs(userDir, targetDir))
......
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