Skip to content

Commit

Permalink
#80, version 0.9.2.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofknecht committed Apr 11, 2020
1 parent 3f94ea0 commit ff24ee7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.2.19")]
[assembly: AssemblyFileVersion("0.9.2.19")]
[assembly: AssemblyVersion("0.9.2.20")]
[assembly: AssemblyFileVersion("0.9.2.20")]
19 changes: 11 additions & 8 deletions Utilities/FolderOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,18 @@ ex is COMException ||
internal static bool IsHidden(string path, ref bool hiddenEntry)
{
bool isDirectoryToHide = false;

FileAttributes attributes = File.GetAttributes(path);
hiddenEntry = attributes.HasFlag(FileAttributes.Hidden);
bool systemEntry = attributes.HasFlag(
FileAttributes.Hidden | FileAttributes.System);
if ((hideHiddenEntries && hiddenEntry) ||
(hideSystemEntries && systemEntry))
#warning #80
if (path.Length < 260)
{
isDirectoryToHide = true;
FileAttributes attributes = File.GetAttributes(path);
hiddenEntry = attributes.HasFlag(FileAttributes.Hidden);
bool systemEntry = attributes.HasFlag(
FileAttributes.Hidden | FileAttributes.System);
if ((hideHiddenEntries && hiddenEntry) ||
(hideSystemEntries && systemEntry))
{
isDirectoryToHide = true;
}
}

return isDirectoryToHide;
Expand Down
3 changes: 1 addition & 2 deletions Utilities/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ internal static void Info(string message)

internal static void Warn(string message, Exception ex)
{
log.Warn($"{message}{Environment.NewLine}" +
$"{ex.ToString()}");
log.Warn($"{message}{Environment.NewLine}{ex}");
}

//internal static void Debug(string message)
Expand Down

0 comments on commit ff24ee7

Please sign in to comment.