From a1926acdbe2cec18cb0367b84b5ec24eb6a2ee8f Mon Sep 17 00:00:00 2001 From: John Ryan Date: Mon, 1 Feb 2021 10:21:07 -0800 Subject: [PATCH] fix path separator bug in cookbook scraper --- web/samples_index/lib/cookbook.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/samples_index/lib/cookbook.dart b/web/samples_index/lib/cookbook.dart index b1a46bf82..94e8c9f78 100644 --- a/web/samples_index/lib/cookbook.dart +++ b/web/samples_index/lib/cookbook.dart @@ -55,7 +55,7 @@ class CookbookScraper { Future takeScreenshot(String url) async { var screenshot = await _driver.captureScreenshotAsList(); - var file = File('web${screenshotPath(url)}'); + var file = File('web/${screenshotPath(url)}'); await file.create(recursive: true); await file.writeAsBytes(screenshot); }