Possible reason of Path.Combine omitting one of parameters

Viewed 547

I noticed that my code writes files to incorrect folders, so I added some logging and the result amazes me. My code:

 string savePath = Path.Combine(mapping.Folder, fileMeta.RelativePath, fileMeta.Filename);
 logger.Info(mapping.Folder);
 logger.Info(fileMeta.RelativePath);
 logger.Info(fileMeta.Filename);
 logger.Info("savepath: {0}", savePath);

This is, what has been written to log:

C:\Sync
\0100_MACHINES
Layout US.pdf 
savepath: \0100_MACHINES\Layout US.pdf

Can anyone give possible reason, why Path.Combine omits first argument, and just combines second and third? What is also funny, that happened only on one machine.

2 Answers
Related