mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-28 13:21:19 +00:00
fix live tv folders being created in a loop
This commit is contained in:
parent
12f20de68b
commit
0b5d4ce3f8
12 changed files with 34 additions and 35 deletions
|
|
@ -499,6 +499,24 @@ namespace Emby.Common.Implementations.IO
|
|||
CopyFile(temp1, file2, true);
|
||||
}
|
||||
|
||||
public bool AreEqual(string path1, string path2)
|
||||
{
|
||||
if (path1 == null && path2 == null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (path1 == null || path2 == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
path1 = path1.TrimEnd(DirectorySeparatorChar);
|
||||
path2 = path2.TrimEnd(DirectorySeparatorChar);
|
||||
|
||||
return string.Equals(path1, path2, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
public bool ContainsSubPath(string parentPath, string path)
|
||||
{
|
||||
if (string.IsNullOrEmpty(parentPath))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue