Exemple #1
0
        static bool SizeCheck(string fileName, IArchiver archiver)
        {
            FileInfo sourceFile = new FileInfo(fileName);

            if (sourceFile.Length > archiver.GetLimitSize())
            {
                Console.WriteLine("Source file is too big");
                return(false);
            }

            return(true);
        }