Merge branch 'rename-file' of https://github.com/Koisu-unavailable/Flow.Launcher into rename-file

This commit is contained in:
Jack251970 2025-09-28 11:57:01 +08:00
commit 970ed26d0c

View file

@ -393,6 +393,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
/// </summary>
public static bool IsValidDirectoryName(string name)
{
if (string.IsNullOrWhiteSpace(name)) return false;
if (IsReservedName(name)) return false;
var invalidChars = Path.GetInvalidPathChars().Concat(new[] { '/', '\\' }).ToArray();
if (name.IndexOfAny(invalidChars) >= 0)