mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge branch 'rename-file' of https://github.com/Koisu-unavailable/Flow.Launcher into rename-file
This commit is contained in:
commit
970ed26d0c
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue