Skip to content

Commit

Permalink
formatting tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
EricZimmerman committed Jan 15, 2025
1 parent 0eac88e commit 068efe0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions RECmd/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public string Format(string format, object arg, IFormatProvider formatProvider)
}
}

#if NET6_0 || NET9_0
#if NET6_0_OR_GREATER

static IEnumerable<string> FindFiles(string directory, IEnumerable<string> masks, HashSet<string> ignoreMasks, EnumerationOptions options,long minimumSize = 0)
{
Expand Down Expand Up @@ -698,7 +698,7 @@ private static void DoWork(string d, string f, string kn, string vn, string bn,

Log.Information("Searching '{Vss} for hives...",$"VSS{target.Replace($"{VssDir}\\", "")}");

#if NET6_0 || NET9_0
#if NET6_0_OR_GREATER

files2 = FindFiles(target, mask, ignoreExt, enumerationOptions, 4);

Expand Down
6 changes: 3 additions & 3 deletions rla/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private static async Task Main(string[] args)
Log.CloseAndFlush();
}

#if NET6_0 || NET9_0
#if NET6_0_OR_GREATER
static IEnumerable<string> FindFiles(string directory, IEnumerable<string> masks, HashSet<string> ignoreMasks, EnumerationOptions options,long minimumSize = 0)
{
foreach (var file in masks.AsParallel().SelectMany(searchPattern => Directory.EnumerateFiles(directory, searchPattern, options)))
Expand Down Expand Up @@ -333,7 +333,7 @@ private static void DoWork(string f, string d, string @out, bool ca, bool cn, bo
files =
Directory.EnumerateFileSystemEntries(d, dirEnumOptions, directoryEnumerationFilters);

#elif NET6_0 || NET9_0
#elif NET6_0_OR_GREATER
var enumerationOptions = new EnumerationOptions
{
IgnoreInaccessible = true,
Expand Down Expand Up @@ -484,7 +484,7 @@ private static void DoWork(string f, string d, string @out, bool ca, bool cn, bo

#if NET462
var logFiles = Directory.GetFiles(dirname, $"{hiveBase}.LOG?");
#elif NET6_0 || NET9_0
#elif NET6_0_OR_GREATER
var en = new EnumerationOptions
{
// IgnoreInaccessible = true,
Expand Down

0 comments on commit 068efe0

Please sign in to comment.