示例#1
0
        public bool isValid()
        {
            bool rv = true;

            if (rv)
            {
                rv = this.MountPoint != null && this.MountPoint.Length == 3;
            }
            if (rv)
            {
                char[] mp = MountPoint.ToUpper().ToCharArray();
                rv = mp[0] >= 'C' && mp[0] <= 'Z';
                if (rv)
                {
                    rv = mp[1] == Path.VolumeSeparatorChar;
                }
                if (rv)
                {
                    rv = mp[2] == Path.DirectorySeparatorChar;
                }
            }
            if (rv)
            {
                rv = Files.Count > 0;
            }
            if (rv)
            {
                rv = FileHelper.isAnyData(Files);
            }
            return(rv);
        }