RickStrahl / Westwind.HtmlPackager

A small utility class used to package HTML content into a self contained HTML document both as a single file, or a folder with all dependencies copied to local.
35 stars 9 forks source link

Error writing out HTML file: Could not find a part of the path #5

Open srid opened 3 years ago

srid commented 3 years ago

It seems like this tool (a great idea, btw) fails for certain websites.

To reproduce,

htmlpackager.exe https://reclaimthenet.org/unlike-other-states-florida-says-no-to-vaccine-passports/ -o Fl.html

Expect it to fail,

[...]
Error: Error writing out HTML file: Could not find a part of the path 'C:\Users\srid\Projects\LRS\ther-states-florida-says-no-to-vaccine-passports\'.
Error: Failed to create HTML output.
full output
------------------------------
West Wind HTML Packager v0.1.7
------------------------------
Processing https://reclaimthenet.org/unlike-other-states-florida-says-no-to-vaccine-passports/...
Loading source url: https://reclaimthenet.org/unlike-other-states-florida-says-no-to-vaccine-passports/
 ==> loading css: /wp-includes/css/dist/block-library/style.min.css
 ==> loading embedded: data:image/svg+xml;utf8,
 ==> loading embedded: data:image/svg+xml;utf8,
 ==> loading css: /wp-content/plugins/metronet-profile-picture/dist/blocks.style.build.css
 ==> loading css: /wp-content/plugins/wp-dark-mode//assets/css/frontend.css
 ==> loading css: /wp-content/themes/hello-reclaim/style.min.css
 ==> loading css: /wp-content/themes/hello-reclaim/theme.min.css
 ==> loading css: /wp-content/plugins/elementor/assets/lib/eicons/css/elementor-icons.min.css
 ==> loading embedded: ../fonts/eicons.woff2
 ==> loading embedded: ../fonts/eicons.woff
 ==> loading embedded: ../fonts/eicons.svg
 ==> loading css: /wp-content/plugins/elementor/assets/lib/animations/animations.min.css
 ==> loading css: /wp-content/plugins/elementor/assets/css/frontend-legacy.min.css
 ==> loading css: /wp-content/plugins/elementor/assets/css/frontend.min.css
 ==> loading embedded: data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23007aff'/%3E%3C/svg%3E
 ==> loading embedded: data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z'/%3E%3C/svg%3E
 ==> loading embedded: data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23fff'/%3E%3C/svg%3E
 ==> loading embedded: data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23007aff'/%3E%3C/svg%3E
 ==> loading embedded: data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z'/%3E%3C/svg%3E
 ==> loading embedded: data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23fff'/%3E%3C/svg%3E
 ==> loading embedded: data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpath id='a' stroke='%236c6c6c' stroke-width='11' stroke-linecap='round' d='M60 7v20'/%3E%3C/defs%3E%3Cuse xlink:href='%23a' opacity='.27'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(30 60 60
 ==> loading embedded: data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpath id='a' stroke='%23fff' stroke-width='11' stroke-linecap='round' d='M60 7v20'/%3E%3C/defs%3E%3Cuse xlink:href='%23a' opacity='.27'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(30 60 60
 ==> loading css: /wp-content/uploads/elementor/css/post-31955.css
 ==> loading css: /wp-content/plugins/elementor-pro/assets/css/frontend.min.css
 ==> loading css: /wp-content/plugins/elementor/assets/lib/font-awesome/css/all.min.css
 ==> loading embedded: ../webfonts/fa-brands-400.woff2
 ==> loading embedded: ../webfonts/fa-brands-400.woff
 ==> loading embedded: ../webfonts/fa-brands-400.svg#fontawesome
 ==> loading embedded: ../webfonts/fa-regular-400.woff2
 ==> loading embedded: ../webfonts/fa-regular-400.woff
 ==> loading embedded: ../webfonts/fa-regular-400.svg#fontawesome
 ==> loading embedded: ../webfonts/fa-solid-900.woff2
 ==> loading embedded: ../webfonts/fa-solid-900.woff
 ==> loading embedded: ../webfonts/fa-solid-900.svg#fontawesome
 ==> loading css: /wp-content/plugins/elementor/assets/lib/font-awesome/css/v4-shims.min.css
 ==> loading css: /wp-content/uploads/elementor/css/post-34654.css
 ==> loading css: /wp-content/uploads/elementor/css/post-34686.css
 ==> loading css: /wp-content/uploads/elementor/css/post-34674.css
 ==> loading css: /wp-content/uploads/elementor/css/post-41527.css
 ==> loading css: /wp-content/plugins/tablepress/css/default.min.css
 ==> loading embedded: data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAPUAA0AAAAACZAAAAN+AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCUhEICoQIgnILFgABNgIkAygEIAWGcgeBARv6B8iuBzK53oAhKg2KWDsrezjalSefocfD9/uZ575PSbYEqJHAIdo6tMDGdCprFIHd+F9r+rZE46O2iHBJfoAuxwW0yfgKS8KGVFE4dHX1gPmgVhzwhcJbReQ9RWXcraeutbmNHE7T7B1sex8stfMfnkvv0XsgUZrYO1hirXme9TnUkBvQ22RGX50VAr48H54Cn9b8GD73edAAhjboBpIQ6kKOhCz7GA8V5HfzyeA6h0mnrFTJnPjxC7KCrl9caqIUg0EAYACGDBn6YGCxeIE+EkwANTWJX/brZpNfyE5o/7r9uPZjS4tESbCTExLCjxOEbxGi2dQeNEAXUMMlvADkqSV0IHXtkQXNOnI2ctJpRIPt8+HjNivx3rlQYA8FqGwdCxF2aZrdJluMnaqFvy+yngVKbBcn0fSOd1xTpnW4HTkptV8Gi2kvCeUHC0BD+D0VKMIqXniZPJyPya9D7gT6DvUpwJER6avgKDsOfW9jU+YGc/ng6MhA3VSar3NdtvrD9WHZurKVKYOi0RwlY9500YSuWDE084F+jMinu4sTudD5yBTTozA9Horpmb+M3TwIBHempnzdpu1/raWypX0JND/ki4p71CQQlFqnAvkijABrVFIq5BdNJbFncoBOF03/h3IINPQRBxJCYDoAOnkRIDR0w0BSmYiBzDinAuQ6eROg0DEGY6DUiEUYqKyILwFq2qS9GKhrpFsykdeFLmDjknYG4jKbNeNyQ1zhCoP840pdYiqu8jTW4mp6pMXH1HVJp8wRmHmQKTKiUOBVSMHrlKuBlYidxkMgw6/bMoG5RD6qfs8yO8LVqFCFa8ELrcVLEqTaS7UG5aqVq1GlWi28k3rRgCjbiU+qqOItvDEqXjkvwF/dUF595jB8LSqqgwIWAWsRmcJJ5GsHbYUqVbirBi5IpRMxLso/i2oSA6ZYDoMFCiknI7ZkGacSVYUjlLSXyG8n08nOQcXTeyzU5ozbiGRQZRt0vu/TMoEV8RLI3DiBSiVzMtNKAPgErlwLoqiAY2fJ9UbRMU/0rz38UP5FQtH3i8V3KYSHYJdSYRnwW8XazUAUop3gQY19hkEH98OA2QQ6wg0S+FjtwOwdOvF5J2VXBBLQmo2EAxsIKVJkkUcRZVRRa7NrP+my6Ns8cKszHYJf+fPPLPTq5vFcmYKZNL+fn1CZDgoYecKZHwA=
 ==> loading embedded: tablepress.woff
 ==> loading css: /wp-content/plugins/add-to-any/addtoany.min.css
 ==> loading css: /wp-content/plugins/elementor/assets/lib/font-awesome/css/fontawesome.min.css
 ==> loading css: /wp-content/plugins/elementor/assets/lib/font-awesome/css/solid.min.css
 ==> loading embedded: ../webfonts/fa-solid-900.woff2
 ==> loading embedded: ../webfonts/fa-solid-900.woff
 ==> loading embedded: ../webfonts/fa-solid-900.svg#fontawesome
 ==> loading css: /wp-content/plugins/elementor/assets/lib/font-awesome/css/brands.min.css
 ==> loading embedded: ../webfonts/fa-brands-400.woff2
 ==> loading embedded: ../webfonts/fa-brands-400.woff
 ==> loading embedded: ../webfonts/fa-brands-400.svg#fontawesome
 ==> loading script: /wp-includes/js/jquery/jquery.min.js
 ==> loading script: /wp-includes/js/jquery/jquery-migrate.min.js
 ==> loading script: /wp-content/plugins/add-to-any/addtoany.min.js
 ==> loading script: /wp-content/plugins/elementor/assets/lib/font-awesome/js/v4-shims.min.js
 ==> loading script: /js
 ==> loading script: /wp-content/plugins/metronet-profile-picture/js/mpp-frontend.js
 ==> loading script: /wp-content/plugins/disqus-conditional-load/assets/js/embed.min.js
 ==> loading script: /ajax/libs/webfont/1.6.26/webfont.js
 ==> loading script: /wp-content/plugins/mailoptin/src/core/src/assets/js/mailoptin.min.js
 ==> loading script: /wp-content/plugins/wp-dark-mode//assets/js/frontend.min.js
 ==> loading script: /wp-includes/js/wp-embed.min.js
 ==> loading script: /wp-content/plugins/elementor-pro/assets/lib/smartmenus/jquery.smartmenus.min.js
 ==> loading script: /wp-includes/js/imagesloaded.min.js
 ==> loading script: /wp-content/plugins/elementor-pro/assets/js/webpack-pro.runtime.min.js
 ==> loading script: /wp-content/plugins/elementor/assets/js/webpack.runtime.min.js
 ==> loading script: /wp-content/plugins/elementor/assets/js/frontend-modules.min.js
 ==> loading script: /wp-content/plugins/elementor-pro/assets/lib/sticky/jquery.sticky.min.js
 ==> loading script: /wp-content/plugins/elementor-pro/assets/js/frontend.min.js
 ==> loading script: /wp-includes/js/jquery/ui/core.min.js
 ==> loading script: /wp-content/plugins/elementor/assets/lib/dialog/dialog.min.js
 ==> loading script: /wp-content/plugins/elementor/assets/lib/waypoints/waypoints.min.js
 ==> loading script: /wp-content/plugins/elementor/assets/lib/share-link/share-link.min.js
 ==> loading script: /wp-content/plugins/elementor/assets/lib/swiper/swiper.min.js
 ==> loading script: /wp-content/plugins/elementor/assets/js/frontend.min.js
 ==> loading script: /wp-content/plugins/elementor-pro/assets/js/preloaded-elements-handlers.min.js
 ==> loading script: /wp-content/plugins/elementor/assets/js/preloaded-elements-handlers.min.js
 ==> loading script: /cdn-cgi/scripts/7089c43e/cloudflare-static/rocket-loader.min.js
 ==> loading image: /wp-content/plugins/wp-dark-mode//assets/images/btn-6/sun.png
 ==> loading image: /wp-content/plugins/wp-dark-mode//assets/images/btn-6/moon.png
 ==> loading image: /wp-content/uploads/2020/03/ORIGINAL-LOGO-good-variation-300x106.png
 ==> loading image: /wp-content/uploads/2021/03/florida-vacc-pass.png
 ==> loading image: /wp-content/uploads/2020/03/ORIGINAL-LOGO-good-variation-300x106.png
 ==> loading image: /wp-content/uploads/2021/03/pcocc-150x150.png
 ==> loading image: /wp-content/uploads/2021/03/dan-bongino-facebook-fact-checkers-150x150.jpg
 ==> loading image: /wp-content/uploads/2021/03/rockclimb-150x150.png
 ==> loading image: /wp-content/uploads/2021/03/pcocc-300x143.png
 ==> loading image: /wp-content/uploads/2021/03/dan-bongino-facebook-fact-checkers-300x143.jpg
 ==> loading image: /wp-content/uploads/2021/03/rockclimb-300x143.png
 ==> loading image: /wp-content/uploads/2021/03/khan-34-300x143.png
 ==> loading image: /wp-content/uploads/2021/03/parler-fed-300x143.png
 ==> loading image: /wp-content/uploads/2021/03/youtube-alternatives-34-300x143.png
 ==> loading image: /wp-content/uploads/2020/03/ORIGINAL-LOGO-good-variation-300x106.png
 ==> loading image: /wp-content/uploads/2020/04/reclaim-merch.png
Error: Error writing out HTML file: Could not find a part of the path 'C:\Users\srid\Projects\LRS\ther-states-florida-says-no-to-vaccine-passports\'.
Error: Failed to create HTML output.