Esempio n. 1
0
        /// <summary>
        /// Размер обрабатываемого файла
        /// </summary>
        /// <param name="FilePatch">Путь к файлу</param>
        private string getFileLength(string FilePatch)
        {
            FileInfo fi = new FileInfo(FilePatch);

            return(fi.Exists ? FilesWorker.FormatFileLength(fi.Length) : string.Empty);
        }
Esempio n. 2
0
        /// <summary>
        /// Длина файла
        /// </summary>
        public string GetFileLength(string sFilePath)
        {
            FileInfo fi = new FileInfo(sFilePath);

            return(fi.Exists ? FilesWorker.FormatFileLength(fi.Length) : string.Empty);
        }