diff --git a/src/SIL.LCModel.Utils/FileUtils.cs b/src/SIL.LCModel.Utils/FileUtils.cs index f22dbb4e..7b5f1b40 100644 --- a/src/SIL.LCModel.Utils/FileUtils.cs +++ b/src/SIL.LCModel.Utils/FileUtils.cs @@ -494,6 +494,7 @@ public static bool IsFilePathValid(string filename) var invalidFileNameChars = Path.GetInvalidFileNameChars(); if (name.IndexOfAny(invalidFileNameChars) >= 0) return false; + if (name == filename) return true; var directoryPath = filename.Substring(0, filename.Length - name.Length); if (directoryPath.IndexOfAny(Path.GetInvalidPathChars()) >= 0) return false;