Skip to content

Add a generic file watcher function in HelpersCommon.psm1 #4524

@daxian-dbw

Description

@daxian-dbw

See #4523 (comment)

Polling for a file can be a common pattern. Consider implementing a generic file watcher function in HelpersCommon.psm1.

while (((Get-Date) - $startTime).TotalSeconds -lt 10 -and (-not (Test-Path "$HOME/nativeCommandProcessor.Success"))) {
    Start-Sleep -Milliseconds 100
}

Metadata

Metadata

Assignees

Labels

Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Quality-Testissues in a test or in test infrastructure

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions