Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion powershell/VstsTaskSdk/LegacyFindFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function Find-Files {
}

# Validate pattern does not end with a \.
if ($pattern[$pattern.Length - 1] -eq [System.IO.Path]::DirectorySeparatorChar) {
if ($pattern.EndsWith([System.IO.Path]::DirectorySeparatorChar)) {
throw (Get-LocString -Key PSLIB_InvalidPattern0 -ArgumentList $pattern)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"loc.messages.PSLIB_EnumeratingSubdirectoriesFailedForPath0": "Enumerating subdirectories failed for path: '{0}'",
"loc.messages.PSLIB_FileNotFound0": "File not found: '{0}'",
"loc.messages.PSLIB_Input0": "'{0}' input",
"loc.messages.PSLIB_InvalidPattern0": "Invalid pattern: '{0}'",
"loc.messages.PSLIB_InvalidPattern0": "Path cannot end with a directory separator character: '{0}'",
"loc.messages.PSLIB_LeafPathNotFound0": "Leaf path not found: '{0}'",
"loc.messages.PSLIB_PathLengthNotReturnedFor0": "Path normalization/expansion failed. The path length was not returned by the Kernel32 subsystem for: '{0}'",
"loc.messages.PSLIB_PathNotFound0": "Path not found: '{0}'",
Expand All @@ -15,4 +15,4 @@
"loc.messages.PSLIB_StringFormatFailed": "String format failed.",
"loc.messages.PSLIB_StringResourceKeyNotFound0": "String resource key not found: '{0}'",
"loc.messages.PSLIB_TaskVariable0": "'{0}' task variable"
}
}