コード例 #1
0
        public object Get(GetDefaultDirectoryBrowser request)
        {
            var result = new DefaultDirectoryBrowserInfo();

            result.Path = _fileSystem.DefaultDirectory;

            return(ToOptimizedResult(result));
        }
コード例 #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));
        }
コード例 #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));
        }