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
@ -107,10 +107,21 @@ namespace sscs.cache
|
|||||||
fs.Flush();
|
fs.Flush();
|
||||||
fs.Close();
|
fs.Close();
|
||||||
|
|
||||||
fs = new FileStream(m_dir + m_filename + ".IV", FileMode.Create);
|
File.SetAttributes(m_dir + m_filename, FileAttributes.Hidden);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
LogMessage(e.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
FileStream fs = new FileStream(m_dir + m_filename + ".IV", FileMode.Create);
|
||||||
fs.Write(m_baMPIV, 0, m_baMPIV.Length);
|
fs.Write(m_baMPIV, 0, m_baMPIV.Length);
|
||||||
fs.Flush();
|
fs.Flush();
|
||||||
fs.Close();
|
fs.Close();
|
||||||
|
|
||||||
|
File.SetAttributes(m_dir + m_filename + ".IV", FileAttributes.Hidden);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user