I have been using the ZipManagerCS demo as a reference for my project, but cannot get the following to work:
After you create a new archive, and add files, in the following function, I need to get the full path to the file on disk, including drive/folder/filename in the following existing function. But none of the methods in AbstractFile return this value. I expected FullName to return this, but it does not, it returns “\filename”. Can someone please help?
-Frank
private void FillFileList()
{
Cursor.Current = Cursors.WaitCursor;
ZipContentsList.Items.Clear();
if( m_zipRoot != null )
{
try
{
AbstractFile[] Files = m_zipRoot.GetFiles(m_zipEvents, null, true);
// We want to freeze the list update while we add items.
ZipContentsList.BeginUpdate();
try
{
foreach( AbstractFile File in Files )
{
ZipContentsList.Items.Add( new ZipContentsItem( ( ZippedFile ) File ) );
}
}
finally
{
ZipContentsList.EndUpdate();
}
}
catch( Exception except )
{
MessagePanel.Text = except.Message;
}
}
Cursor.Current = Cursors.Default;
}
Imported from legacy forums. Posted by fperugini (had 2320 views)