remove use of Environment
This commit is contained in:
parent
da7d61be5a
commit
e508752191
|
@ -136,20 +136,17 @@ namespace MediaBrowser.Api
|
|||
{
|
||||
var result = new DefaultDirectoryBrowserInfo();
|
||||
|
||||
if (Environment.OSVersion.Platform == PlatformID.Unix)
|
||||
try
|
||||
{
|
||||
try
|
||||
var qnap = "/share/CACHEDEV1_DATA";
|
||||
if (Directory.Exists(qnap))
|
||||
{
|
||||
var qnap = "/share/CACHEDEV1_DATA";
|
||||
if (Directory.Exists(qnap))
|
||||
{
|
||||
result.Path = qnap;
|
||||
}
|
||||
result.Path = qnap;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return ToOptimizedResult(result);
|
||||
|
|
Loading…
Reference in New Issue
Block a user