public object Get(GetDefaultDirectoryBrowser request) { var result = new DefaultDirectoryBrowserInfo(); result.Path = _fileSystem.DefaultDirectory; return(ToOptimizedResult(result)); }
public object Get(GetDefaultDirectoryBrowser request) { var result = new DefaultDirectoryBrowserInfo(); try { var qnap = "/share/CACHEDEV1_DATA"; if (_fileSystem.DirectoryExists(qnap)) { result.Path = qnap; } } catch { } return(ToOptimizedResult(result)); }
public object Get(GetDefaultDirectoryBrowser request) { var result = new DefaultDirectoryBrowserInfo(); if (Environment.OSVersion.Platform == PlatformID.Unix) { try { var qnap = "/share/CACHEDEV1_DATA"; if (Directory.Exists(qnap)) { result.Path = qnap; } } catch { } } return(ToOptimizedResult(result)); }