Beispiel #1
0
        /// <summary>The check file.</summary>
        /// <param name="fileName">The file Name.</param>
        /// <returns>The <see cref="bool"/>.</returns>
        private bool CheckFile(string fileName)
        {
            bool check;

            try
            {
                check = _fileReader.CanWeReadFile(fileName);
            }
            catch (Exception e)
            {
                _log.Error($"Cannot read file: {_fileName}, reason:{e.Message}");
                check = false;
            }

            return(check);
        }