I write code that checks the file path, calculates the hash (SHA1) and copies them. I made sure that I do not block them, for example, using
public static string SHA1(string filePath) { var fs = new FileStream(filePath, FileMode.Open, FileAccess.Read); var formatted = string.Empty; using (var sha1 = new SHA1Managed()) { byte[] hash = sha1.ComputeHash(fs); foreach (byte b in hash) { formatted += b.ToString("X2"); } } return formatted; }
So, how can I find in Visual Studio where it locks a file?
source share