Mark file hidden when rewriting the file.
This commit is contained in:
parent
9b71029b0c
commit
7dbb81d641
13
CASA/micasad/cache/MPFileWatcher.cs
vendored
13
CASA/micasad/cache/MPFileWatcher.cs
vendored
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user