From eac457da2f4f2cf52189af79538ac788db6da293 Mon Sep 17 00:00:00 2001
From: eric sciple <ericsciple@users.noreply.github.com>
Date: Thu, 12 Dec 2019 13:10:34 -0500
Subject: [PATCH] .

---
 dist/index.js            | 2 +-
 src/github-api-helper.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dist/index.js b/dist/index.js
index b527b2d..c6444b5 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -8439,7 +8439,7 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat
             const sourcePath = path.join(tempRepositoryPath, fileName);
             const targetPath = path.join(repositoryPath, fileName);
             if (IS_WINDOWS) {
-                yield io.cp(sourcePath, targetPath); // Copy on Windows in case Windows Defender has a lock on the files
+                yield io.cp(sourcePath, targetPath, { recursive: true }); // Copy on Windows (Windows Defender may have a lock)
             }
             else {
                 yield io.mv(sourcePath, targetPath);
diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts
index ce94701..b370d06 100644
--- a/src/github-api-helper.ts
+++ b/src/github-api-helper.ts
@@ -59,7 +59,7 @@ export async function downloadRepository(
     const sourcePath = path.join(tempRepositoryPath, fileName)
     const targetPath = path.join(repositoryPath, fileName)
     if (IS_WINDOWS) {
-      await io.cp(sourcePath, targetPath) // Copy on Windows in case Windows Defender has a lock on the files
+      await io.cp(sourcePath, targetPath, {recursive: true}) // Copy on Windows (Windows Defender may have a lock)
     } else {
       await io.mv(sourcePath, targetPath)
     }