mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 01:05:19 +03:00
make channel access opt-in rather than opt out
This commit is contained in:
@@ -270,8 +270,8 @@ namespace MediaBrowser.Common.Implementations.IO
|
||||
File.Copy(temp1, file2, true);
|
||||
File.Copy(temp2, file1, true);
|
||||
|
||||
File.Delete(temp1);
|
||||
File.Delete(temp2);
|
||||
DeleteFile(temp1);
|
||||
DeleteFile(temp2);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -409,5 +409,25 @@ namespace MediaBrowser.Common.Implementations.IO
|
||||
|
||||
//return Path.IsPathRooted(path);
|
||||
}
|
||||
|
||||
public void DeleteFile(string path, bool sendToRecycleBin)
|
||||
{
|
||||
File.Delete(path);
|
||||
}
|
||||
|
||||
public void DeleteDirectory(string path, bool recursive, bool sendToRecycleBin)
|
||||
{
|
||||
Directory.Delete(path, recursive);
|
||||
}
|
||||
|
||||
public void DeleteFile(string path)
|
||||
{
|
||||
DeleteFile(path, false);
|
||||
}
|
||||
|
||||
public void DeleteDirectory(string path, bool recursive)
|
||||
{
|
||||
DeleteDirectory(path, recursive, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user