mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-13 03:02:04 +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;
|
|
}
|
|
}
|
|
}
|