DBreeze.Scheme.DeleteAllReleatedTableFiles C# (CSharp) Method

DeleteAllReleatedTableFiles() private method

Used by GetTableFor Write, if table is newly created and we have such file name
private DeleteAllReleatedTableFiles ( string fullTableFilePath ) : void
fullTableFilePath string
return void
        private void DeleteAllReleatedTableFiles(string fullTableFilePath)
        {
            //This call can be done only for physical files, it's controlled on the upper level

            //if (this.Engine.Configuration.Storage == DBreezeConfiguration.eStorage.MEMORY)
            //    return;

            try
            {
                //Deleting DB File
                if (File.Exists(fullTableFilePath))
                    File.Delete(fullTableFilePath);

                //Deleting Rollback File
                if (File.Exists(fullTableFilePath + ".rol"))
                    File.Delete(fullTableFilePath + ".rol");

                //Deleting Rollback Help File
                if (File.Exists(fullTableFilePath + ".rhp"))
                    File.Delete(fullTableFilePath + ".rhp");

                /* Handling backup*/
                if (this.Engine.Configuration.Backup.IsActive)
                {
                    string exactFileName = Path.GetFileName(fullTableFilePath);
                    ulong ulFileName = this.Engine.Configuration.Backup.BackupFNP.ParseFilename(exactFileName);
                    long backup_filePosition = 0;
                    byte[] data = null;
                    this.Engine.Configuration.Backup.WriteBackupElement(ulFileName, 5, backup_filePosition, data);
                }
                /*****************/

            }
            catch (Exception ex)
            {
                //CASCADE
                throw ex;
            }
        }