コード例 #1
0
        private void OpenDirectory()
        {
            filePaths      = null;
            directoryPaths = null;
            exception      = null;

            try
            {
                filePaths = Directory.GetFiles(path)
                            .Where(x => !blackList.Contains(x))
                            .ToArray();

                directoryPaths = Directory.GetDirectories(path)
                                 .Where(x => !blackList.Contains(x))
                                 .ToArray();
            }
            catch (Exception ex)
            {
                exception = ex;
            }
        }