示例#1
0
        public ArgumentHolder(Program.Arguments inArgs)
        {
            // HACK: combine paths and get the base dir to get a uniform name
            this.DirectoryA = Path.GetDirectoryName(Path.Combine(inArgs.DirectoryA, "x"));
            this.DirectoryB = Path.GetDirectoryName(Path.Combine(inArgs.DirectoryB, "x"));

            this.ignoreUnchanged = inArgs.ignoreUnchanged;
            this.checksumName    = this.selectChecksum(inArgs);
        }
示例#2
0
        private string selectChecksum(Program.Arguments inArgs)
        {
            if (inArgs.useMD5)
            {
                return("MD5");
            }
            else if (inArgs.useSHA1)
            {
                return("SHA1");
            }
            else if (inArgs.useSHA256)
            {
                return("SHA256");
            }

            return("MD5");
        }