Skip to content

Conversation

@micheldiemer
Copy link

@micheldiemer micheldiemer commented Apr 20, 2024

This pull request adds a new table called GetChildItemColorRegExTable to allow colorization of file names based on a regex. ServiceController not updated, only File (add pattern 'starts with dot ^[.]')

Test for hidden or system files ; added styles for those

@micheldiemer micheldiemer changed the title Allow RegEx ; added GetChildItemColorRegExTable Allow RegEx ; added GetChildItemColorRegExTable ; test for file attributes Apr 20, 2024
if ([bool]($item.Attributes -band [IO.FileAttributes]::ReparsePoint) -and (-not $inOneDrive)) {
$key = 'Symlink'
} elseif ($item.GetType().Name -eq 'DirectoryInfo') {
$key = 'Directory'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, what is the reason for removing DirectoryInfo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants