Skip to content

Commit

Permalink
Use HasHiddenFlag as expression body
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossanlop authored and carlossanlop committed May 7, 2021
1 parent 3105cb8 commit c40386c
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,8 @@ internal struct FileStatus
// Ideally, use this if Refresh has been successfully called at least once.
// But since it is also used for soft retrieval during FileSystemEntry initialization,
// we return false early if the cache has not been initialized
internal bool HasHiddenFlag
{
get
{
return IsFileCacheInitialized &&
(_fileCache.UserFlags & (uint)Interop.Sys.UserFlags.UF_HIDDEN) == (uint)Interop.Sys.UserFlags.UF_HIDDEN;
}
}
internal bool HasHiddenFlag => IsFileCacheInitialized &&
(_fileCache.UserFlags & (uint)Interop.Sys.UserFlags.UF_HIDDEN) == (uint)Interop.Sys.UserFlags.UF_HIDDEN;

// Checks if the main path (without following symlinks) has the read-only attribute set
// Ideally, use this if Refresh has been successfully called at least once.
Expand Down

0 comments on commit c40386c

Please sign in to comment.