Mark file hidden when rewriting the file.

This commit is contained in:
Jim Norman 2006-07-07 17:52:10 +00:00
parent 9b71029b0c
commit 7dbb81d641

View File

@ -106,11 +106,22 @@ namespace sscs.cache
fs.Write(m_baMP, 0, m_baMP.Length);
fs.Flush();
fs.Close();
File.SetAttributes(m_dir + m_filename, FileAttributes.Hidden);
}
catch (Exception e)
{
LogMessage(e.ToString());
}
fs = new FileStream(m_dir + m_filename + ".IV", FileMode.Create);
try
{
FileStream fs = new FileStream(m_dir + m_filename + ".IV", FileMode.Create);
fs.Write(m_baMPIV, 0, m_baMPIV.Length);
fs.Flush();
fs.Close();
File.SetAttributes(m_dir + m_filename + ".IV", FileAttributes.Hidden);
}
catch (Exception e)
{