Engines/FlatRedBallXNA/FlatRedBall/Content/ContentBuilder.cs
/// <summary>
/// Deletes our temporary directory when we are finished with it.
/// </summary>
Deletes our temporary directory when we are finished with it.
Deletes our temporary directory when we are finished with it .
void DeleteTempDirectory()
        {
            if (mHaveFilesBeenCreated)
            {
                Directory.Delete(mBuildDirectory, true);
                if (Directory.GetDirectories(mProcessDirectory).Length == 0)
                {
                    Directory.Delete(mProcessDirectory);
                    if (Directory.GetDirectories(mBaseDirectory).Length == 0)
                    {
                        Directory.Delete(mBaseDirectory);
                    }
                }
            }
        }
void DeleteTempDirectory ( ) { if ( mHaveFilesBeenCreated ) { Directory . Delete ( mBuildDirectory , true ) ; if ( Directory . GetDirectories ( mProcessDirectory ) . Length == 0 ) { Directory . Delete ( mProcessDirectory ) ; if ( Directory . GetDirectories ( mBaseDirectory ) . Length == 0 ) { Directory . Delete ( mBaseDirectory ) ; } } } }
Deletes our temporary directory when we are finished with it.
Deletes our temporary directory when we are finished with it .
// If there are no other instances of ContentBuilder still using their // own temp directories, we can delete the process directory as well. // If there are no other copies of the program still using their // own temp directories, we can delete the base directory as well.