Committed by jr

This commit is contained in:
2018-04-23 11:20:40 +02:00
parent f6706e4328
commit f9c77cd5e1

View File

@@ -40,7 +40,7 @@ namespace OneDriveArchiver
// check if we have to create either year or month folder... // check if we have to create either year or month folder...
// start with parent year folder... // start with parent year folder...
var fullYearFolderPath = Path.Combine(basePath, fileYear); var fullYearFolderPath = Path.Combine(basePath ?? throw new InvalidOperationException(), fileYear);
var fullMonthFolderPath = Path.Combine(Path.Combine(basePath, fileYear), fileMonth); var fullMonthFolderPath = Path.Combine(Path.Combine(basePath, fileYear), fileMonth);
if (!Directory.Exists(fullYearFolderPath)) if (!Directory.Exists(fullYearFolderPath))
{ {