Skip to content

Commit 970ed26

Browse files
committed
Merge branch 'rename-file' of https://github.com/Koisu-unavailable/Flow.Launcher into rename-file
2 parents 0dd2f05 + 93d9667 commit 970ed26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ public static bool IsValidFileName(string name)
393393
/// </summary>
394394
public static bool IsValidDirectoryName(string name)
395395
{
396+
if (string.IsNullOrWhiteSpace(name)) return false;
396397
if (IsReservedName(name)) return false;
397398
var invalidChars = Path.GetInvalidPathChars().Concat(new[] { '/', '\\' }).ToArray();
398399
if (name.IndexOfAny(invalidChars) >= 0)

0 commit comments

Comments
 (0)