| Index: pkg/glob/lib/src/utils.dart
|
| diff --git a/pkg/glob/lib/src/utils.dart b/pkg/glob/lib/src/utils.dart
|
| index 35526c0860556ce2b7340d29ab9d74ae675c5428..f17f2ed8cc64a5216c72d8ce41b1989678fb96f1 100644
|
| --- a/pkg/glob/lib/src/utils.dart
|
| +++ b/pkg/glob/lib/src/utils.dart
|
| @@ -68,3 +68,11 @@ String separatorToForwardSlash(String path) {
|
| if (p.style != p.Style.windows) return path;
|
| return path.replaceAll('\\', '/');
|
| }
|
| +
|
| +/// Returns [path] which follows [context] converted to the POSIX format that
|
| +/// globs match against.
|
| +String toPosixPath(p.Context context, String path) {
|
| + if (context.style == p.Style.windows) return path.replaceAll('\\', '/');
|
| + if (context.style == p.Style.url) return Uri.decodeFull(path);
|
| + return path;
|
| +}
|
|
|