Fail if an export command is called with multiple channels but a single-file output path

Closes #799
This commit is contained in:
Oleksii Holub
2022-08-25 22:11:26 +03:00
parent 4e358e8e6f
commit 504c3c53cd
2 changed files with 19 additions and 3 deletions

View File

@@ -17,4 +17,8 @@ public static class PathEx
return buffer.ToString();
}
public static bool IsDirectoryPath(string path) =>
path.EndsWith(Path.DirectorySeparatorChar) ||
path.EndsWith(Path.AltDirectorySeparatorChar);
}