From 9cd8449014ab105839b99463071ae54fa64904b5 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 22 Feb 2018 11:45:22 -0500 Subject: [PATCH] fix directory copying --- lib/pipeline/pipeline.js | 2 +- test_app/app/images/image1.png | Bin 0 -> 1011 bytes test_app/app/images/secondfolder/image2.jpg | Bin 0 -> 2008 bytes 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 test_app/app/images/image1.png create mode 100644 test_app/app/images/secondfolder/image2.jpg diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index b8e7b73d1..41f4a9467 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -128,7 +128,7 @@ class Pipeline { filename = filename.replace(targetDir, ''); self.logger.info("writing file " + (self.buildDir + targetDir + filename).bold.dim); - fs.copySync(self.buildDir + targetDir + filename, file.path, {overwrite: true}); + fs.copySync(file.path, self.buildDir + targetDir + filename, {overwrite: true}); }); } else { let content = contentFiles.map(function (file) { diff --git a/test_app/app/images/image1.png b/test_app/app/images/image1.png new file mode 100644 index 0000000000000000000000000000000000000000..ecea4fa7558d293f7667946ffbc8323cfa061b03 GIT binary patch literal 1011 zcmeAS@N?(olHy`uVBq!ia0vp^G9b*s1|*Ak?@s|zjKx9jP7LeL$-D$|I14-?iy0WW zg+Z8+Vb&Z8pn}NEkcg59UmvUF{9L`nl>DSry^7odplSvNn+hu+GdHy)QK2F?C$HG5 z!d3~a!V1U+3F|8Y3;nDA{o-C@9zzrKDK}xwt{K19`Se z86_nJR{Hwo<>h+i#(Mch>H3D2mX`VkM*2oZx=P7{9O-#x!EwNQn0$BtH5O0c3d|4@L;p!@;Rg)$-uy5?CIhd;=%iN z%31GFM~QY_)88AE4s-b^dup8GGU_mET=6?hGpSqbuexsZmaNCe=3dwrsyk^>?+%^j z-Q2w$8oa^Yr=RaU_h9Qg%k+1wtqa8G89#qK_q+M~{Ac&t+WrULZM5ApEw)E36wBGIKOA@PB^Su`+<5ye_?&6zg>!YSR_2o5 zou%*azrQ9iIZIVFP$%l<*}tkkIK2%xoD)>8dU+Zhf4Ai=+m?oFx2Dd$*Sz@Q&I`BP zgn}PSb=Gd+IcLpYc8~LZqEw7WN%QUfi&r@BkA7mIu|vw@(2Iu`Z;48@aVO;E30KO; zu4Ls|yG7Zx>LJ&hM&^X$atmrd$ZWCKn{xYYpi0I!SBb`X1@{lWxVJNZ?Spwz;SX*1 zd~95im3vJsyzKhXC#M%osQ$_;63PD7hUM)CLBFPj#-XgAt#r;m*~FoG!RqMa&Jub5 zhVBX`;SWM~j%iOgkBM5%Yuo<7^NQQ|&mw!8+70;cevlGdu+BCm?&dW4djiY}8`D29 ziqv!cJA1dWa0cU18;elo_0H-y=GHWtzF^m_Wk3EvZ->C{IW05f{ms{JbDy~2rkLRt zU+eR1dB$0be}88X*%+5rUgQ1i|KoL*`oFi3S?OVn@8mx_fti(o!PC{xWt~$(696>_k*5Fv literal 0 HcmV?d00001 diff --git a/test_app/app/images/secondfolder/image2.jpg b/test_app/app/images/secondfolder/image2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c41c2c0451cf5e1a3757a95038d519a99dcc101a GIT binary patch literal 2008 zcmbtVc}!Gy5T1AKE=Oe_%L1ja2Lc{N!=<2U%MC)%E-N0ODYDD47?5RmQ4Z6Bs8nJi z2(*B0!=a-1M+L3g+E@^+wT%gf2iT+quhuFSP!Q|!I&YWbkJ>+)&ddJh%e(dui+vy{EM_ImcSJK| zPcsx>b=y0z58CPb#a6WsC&NDEZjlW!;o-?D_4`pVagkJ28u zA&6IPGwFF;f!IN-OG!n15V5xb2SnV>$2AswhsPNfJjr82f;t?4v_-7QuwZW2V&JjjGBFu@}9TTrvt*ZG<2 zRzVKdXz|oT0T{3%19VvHjnO_);{AqzMKDLXnlV4JLGnfuJx((E?g1phW^BK?23n_DaTA z;w~11#``&>swr=cf&f4~mW(CQFRt<#c`Dr1u>qP=v~D`9DB zwdwq(-kr_P`djlN1Jh2d$varnwQH;|YHRWB=(Xu5t*qa4nZICR(6Z$#Vq({!m>Igv z&D-(|3U`-%yr;b4lTT~w>KhInZaH$a_4rq(PM`Vun~n@7tfLa%0d!PGfSQX&CIf7fh3V9MN$mOkThLJphlF~UP&u_ zLnVxlyI;IRh`@htN|-cP9Z;h3sB8>xa};WptRCs{+|(H{WEgeYpXX4p4P z@z(7rl4CP0e}-^iD4M1z1`mcoa<(ENnw^b}l`U&$Z_nDXti;jPN#fulWm#vXvx}RX zTrQV5xqGEENibb3~#!G6&W{_MeTr3AU73J{Fg2;)4y%Bg>z56(qMN z6lAmpw#p7{#tad@2ZAAsChldi^pP)|mOoQHdR})%MxCqCr6%N;-*mPs8&2Qdce49p z;78_s+}B{@p&8=#PD26&!DOayi=Rk+X)MWWPoh$D^xYaS&-LZq%XC%h!ecMyY*?a9 z4;WV_^t^X;IP99|l_O_b9$niQ^D3srv2Jll+%fst6-^p>yU_GlB`t54j{k`Z<1faI z!IeP6#ldgZhG0SI8ycUITT