@@ -1114,7 +1114,7 @@ public async Task SetWorkingDirectory(string path, bool isPathAlreadyEscaped)
1114
1114
{
1115
1115
if ( ! isPathAlreadyEscaped )
1116
1116
{
1117
- path = GlobEscapePath ( path ) ;
1117
+ path = WildcardEscapePath ( path ) ;
1118
1118
}
1119
1119
1120
1120
runspaceHandle . Runspace . SessionStateProxy . Path . SetLocation ( path ) ;
@@ -1129,7 +1129,7 @@ public async Task SetWorkingDirectory(string path, bool isPathAlreadyEscaped)
1129
1129
/// <returns>An escaped version of the path that can be embedded in PowerShell script.</returns>
1130
1130
internal static string FullyPowerShellEscapePath ( string path )
1131
1131
{
1132
- string globEscapedPath = GlobEscapePath ( path ) ;
1132
+ string globEscapedPath = WildcardEscapePath ( path ) ;
1133
1133
return QuoteEscapeString ( globEscapedPath ) ;
1134
1134
}
1135
1135
@@ -1170,7 +1170,7 @@ internal static string QuoteEscapeString(string escapedPath)
1170
1170
/// <param name="path">The path to process.</param>
1171
1171
/// <param name="escapeSpaces">Specify True to escape spaces in the path, otherwise False.</param>
1172
1172
/// <returns>The path with [ and ] escaped.</returns>
1173
- internal static string GlobEscapePath ( string path , bool escapeSpaces = false )
1173
+ internal static string WildcardEscapePath ( string path , bool escapeSpaces = false )
1174
1174
{
1175
1175
var sb = new StringBuilder ( ) ;
1176
1176
for ( int i = 0 ; i < path . Length ; i ++ )
@@ -1211,10 +1211,10 @@ internal static string GlobEscapePath(string path, bool escapeSpaces = false)
1211
1211
[ Obsolete ( "This API is not meant for public usage and should not be used." ) ]
1212
1212
public static string EscapePath ( string path , bool escapeSpaces )
1213
1213
{
1214
- return GlobEscapePath ( path , escapeSpaces ) ;
1214
+ return WildcardEscapePath ( path , escapeSpaces ) ;
1215
1215
}
1216
1216
1217
- internal static string UnescapeGlobEscapedPath ( string globEscapedPath )
1217
+ internal static string UnescapeWildcardEscapedPath ( string globEscapedPath )
1218
1218
{
1219
1219
// Prevent relying on my implementation if we can help it
1220
1220
if ( ! globEscapedPath . Contains ( '`' ) )
@@ -1264,7 +1264,7 @@ internal static string UnescapeGlobEscapedPath(string globEscapedPath)
1264
1264
[ Obsolete ( "This API is not meant for public usage and should not be used." ) ]
1265
1265
public static string UnescapePath ( string path )
1266
1266
{
1267
- return UnescapeGlobEscapedPath ( path ) ;
1267
+ return UnescapeWildcardEscapedPath ( path ) ;
1268
1268
}
1269
1269
1270
1270
#endregion
0 commit comments