File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,7 @@ export class BlobsServer {
258
258
try {
259
259
const allStores = await fs . readdir ( rootPath )
260
260
const filteredStores = allStores
261
+ // Store names are URI-encoded on Windows, so we must decode them first.
261
262
. map ( ( store ) => ( platform === 'win32' ? decodeURIComponent ( store ) : store ) )
262
263
. filter ( ( store ) => store . startsWith ( prefix ) )
263
264
@@ -335,8 +336,8 @@ export class BlobsServer {
335
336
return { rootPath }
336
337
}
337
338
338
- // On Windows, file paths can't include the `:` character, which is used in
339
- // deploy-scoped stores .
339
+ // On Windows, file paths can't include the `:` character, so we URI-encode
340
+ // them .
340
341
const storeName = platform === 'win32' ? encodeURIComponent ( rawStoreName ) : rawStoreName
341
342
const storePath = resolve ( rootPath , storeName )
342
343
const dataPath = resolve ( storePath , ...key )
You can’t perform that action at this time.
0 commit comments