Mark file hidden when rewriting the file.
This commit is contained in:
		
							
								
								
									
										13
									
								
								CASA/micasad/cache/MPFileWatcher.cs
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								CASA/micasad/cache/MPFileWatcher.cs
									
									
									
									
										vendored
									
									
								
							| @@ -107,10 +107,21 @@ namespace sscs.cache | ||||
| 				fs.Flush(); | ||||
| 				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.Flush(); | ||||
| 				fs.Close();			 | ||||
|  | ||||
| 				File.SetAttributes(m_dir + m_filename + ".IV", FileAttributes.Hidden); | ||||
| 			} | ||||
| 			catch (Exception e) | ||||
| 			{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user