mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-22 04:41:21 +00:00
check operating system for absolute path test
This commit is contained in:
parent
a8cd963d46
commit
65e9a705d3
3 changed files with 15 additions and 4 deletions
|
|
@ -448,7 +448,7 @@ namespace Emby.Server.Implementations.IO
|
|||
|
||||
public virtual void SetHidden(string path, bool isHidden)
|
||||
{
|
||||
if (OperatingSystem.Id != MediaBrowser.Model.System.OperatingSystemId.Windows)
|
||||
if (OperatingSystem.Id != OperatingSystemId.Windows)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -779,7 +779,7 @@ namespace Emby.Server.Implementations.IO
|
|||
|
||||
public virtual void SetExecutable(string path)
|
||||
{
|
||||
if (OperatingSystem.Id == MediaBrowser.Model.System.OperatingSystemId.Darwin)
|
||||
if (OperatingSystem.Id == OperatingSystemId.Darwin)
|
||||
{
|
||||
RunProcess("chmod", "+x \"" + path + "\"", Path.GetDirectoryName(path));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue