public object Get(GetDefaultDirectoryBrowser request)
        {
            var result = new DefaultDirectoryBrowserInfo();

            result.Path = _fileSystem.DefaultDirectory;

            return(ToOptimizedResult(result));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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));
        }