fixes bug with static folder copying where code would crash if files already existed in folder
This commit is contained in:
parent
0d116acd17
commit
dc7066b559
4 changed files with 5 additions and 40 deletions
|
@ -36,7 +36,7 @@
|
|||
<h2>One last thing</h2>
|
||||
<p>...
|
||||
moomin</p>
|
||||
<p><img src="file:///home/rosia/Pictures/Moomins/moomin-meadow.png" alt="moomin"></p>
|
||||
<p><img src="moomin.png" alt="moomin"></p>
|
||||
|
||||
</article>
|
||||
</main>
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="LandingPageWireframe.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
Rosia Evans
|
||||
</header>
|
||||
<main>
|
||||
<h1>
|
||||
Welcome!
|
||||
</h1>
|
||||
<section>
|
||||
I'm Rosia Evans, this is my site where I log my work for myself and for me to show to
|
||||
others.
|
||||
</section>
|
||||
|
||||
<section>
|
||||
I'm currently studying at a small university in wales where I'm doing a BEng in
|
||||
software engineering whilst working on robotics and exploring my own interests
|
||||
on the side through various societies. I've previously had interests in VR and XR
|
||||
and UI design, spending a lot of my secondary school years experimenting with both
|
||||
concepts.
|
||||
</section>
|
||||
|
||||
<section>
|
||||
See more about my work here:
|
||||
|
||||
<div class="test">
|
||||
<a href="/Example_Post.html">Work</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</main>
|
||||
<div>
|
||||
</body>
|
||||
</html>
|
|
@ -37,7 +37,9 @@ std::string getArg(int argc, char* argv[], std::string argIdString)
|
|||
|
||||
void copyFolderAndContents(std::string inUrl, std::string outUrl)
|
||||
{
|
||||
std::filesystem::copy(inUrl, outUrl, std::filesystem::copy_options::recursive);
|
||||
std::filesystem::copy_options opts = std::filesystem::copy_options::update_existing |
|
||||
std::filesystem::copy_options::recursive;
|
||||
std::filesystem::copy(inUrl, outUrl, opts);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -65,3 +67,4 @@ int main(int argc, char* argv[])
|
|||
// TODO: get images and resources moved across to output
|
||||
// TODO: nav sections :eww:
|
||||
// TODO: copy static pages over
|
||||
// TODO: code doesnt copy moomin
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue