Can someone help me how to skip system volume information with this code?
C#:
string[] originalFiles = Directory.GetFiles(sourcePath, "*", SearchOption.AllDirectories);
logFile.Add("Begin SyncDrive backup procedure.");
Array.ForEach(originalFiles, (originalFileLocation) =>
{
FileInfo originalFile = new FileInfo(originalFileLocation);
FileInfo destFile = new FileInfo(originalFileLocation.Replace(sourcePath, destPath));
if (destFile.Exists)
{
if (originalFile.Length != destFile.Length || originalFile.LastWriteTime != destFile.LastWriteTime)
{
count++;
}
}
else
{
count++;
}
});