void CheckWriteableFiles()

in scbuild/scbuild.cs [440:489]


    void CheckWriteableFiles()
    {
        // This code is no longer used as on Git all files are writable.
        // Keeping the code for now in case we need it

        Debug.Assert( false );

        string [] res = RunCmd( "", "dir /a-r-d /s /b" );

        foreach( string r in res )
        {
            string Line = r.ToLower();
            int i = Line.LastIndexOf( '\\' );
            if( i < 0 )
            {
                Fatal( "Did not find path separator in DIR output" );
            }
            string FileName = Line.Substring( i+1, Line.Length - i - 1 );

            if(
                !Line.Contains( @"symcrypt\release" ) &&
                FileName != "buildchk.log" &&
                FileName != "buildchk.err" &&
                FileName != "buildfre.log" &&
                FileName != "buildfre.err" &&
                FileName != "buildchk.trc" &&
                FileName != "buildfre.trc" &&
                FileName != "buildchk.prf" &&
                FileName != "buildfre.prf" &&
                FileName != "buildchk.wrn" &&
                FileName != "buildfre.wrn" &&
                FileName != "buildchk.dbb" &&
                FileName != "buildfre.dbb" &&
                FileName != "buildchk.evt" &&
                FileName != "buildfre.evt" &&
                FileName != "buildchk.metadata" &&
                FileName != "buildfre.metadata" &&
                FileName != "scbuild.log"
                )
            {
                if( m_option_ignore_writable )
                {
                    Print( "...ignoring writable file {0}\n", Line );
                } else
                {
                    Fatal( "Unknown writable file '{0}' found", Line );
                }
            }
        }
    }