/****************************************************************************/ public override void CopyTo(FileSpec objDestination, bool bOverwrite) { if (objDestination is DiskFileSpec) { CopyToFile(objDestination as DiskFileSpec, bOverwrite); } else { base.CopyTo(objDestination, bOverwrite); } }
/****************************************************************************/ public virtual void CopyTo(FileSpec objDestination, bool bOverwrite) { IEnumerable aFiles = this.GetFiles(false); foreach (string strSourceFilePath in aFiles) { if (m_objProgress != null) { m_objProgress.SetProgress(strSourceFilePath); } objDestination.DropFile(this, strSourceFilePath, bOverwrite); } return; }
/****************************************************************************/ public override void DropFile(FileSpec objSpec, string strFileName, bool bOverwrite) { // Do nothing because this will never get called }
/****************************************************************************/ public CompareModificationDates(FileSpec objSpec) { m_objSpec = objSpec; }
public abstract void DropFile(FileSpec objSpec, string strFileName, bool bOverwrite);