mirror of
https://github.com/Radarr/Radarr
synced 2026-01-13 11:03:35 +01:00
12 lines
269 B
C#
12 lines
269 B
C#
using System.IO;
|
|
|
|
namespace NzbDrone.Common.Extensions
|
|
{
|
|
public static class PathExtensions
|
|
{
|
|
public static bool ContainsInvalidPathChars(this string text)
|
|
{
|
|
return text.IndexOfAny(Path.GetInvalidPathChars()) >= 0;
|
|
}
|
|
}
|
|
}
|