Demo entry 6633250

C#

   

Submitted by anonymous on Aug 01, 2017 at 16:35
Language: C#. Code size: 853 Bytes.

            bool IsFolderAccessable = false;
            string strLastMatchFilePtn;
            bool IsGoMatching;
            string strTopicTitle, strFilePattern, strFileName;
            DateTime? datFileDate;
            IEnumerable<FileInfo> fis = null;
            IEnumerable<DirectoryInfo> dis = null;

            // STEP 1. 檢查 BT Folder 是否可以存取
            IsFolderAccessable = false;
            lblLoading.InvokeSetText("1.檢查 BT 下載資料夾...");
            lblLoading.InvokeSetVisible(true);
            try {
                // IsFolderAccessable = await Task.Run(() => Directory.Exists(_CfgFile.Download_BTPath));
                if (Directory.Exists(_CfgFile.Download_BTPath)) {
                    IsFolderAccessable = true;
                }
            } catch {
                IsFolderAccessable = false;
            }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).