From e378dbc0553dc84c953550fa678028c6299a330f Mon Sep 17 00:00:00 2001 From: Julien Seguinot Date: Tue, 12 Jan 2021 08:17:32 +0100 Subject: [PATCH] Normalize wildcard paths in open_mfdataset. --- xarray/backends/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/backends/api.py b/xarray/backends/api.py index faa7e6cf3d3..637cb11ba1a 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -887,7 +887,7 @@ def open_mfdataset( paths ) ) - paths = sorted(glob(paths)) + paths = sorted(glob(_normalize_path(paths))) else: paths = [str(p) if isinstance(p, Path) else p for p in paths]