lang, gapi: Work around a copy bug in the deploy

It seems when we had a files/ dir that we added to our deploy, it would
get copied into /files/files/whatever instead of /files/whatever where
it should be. Hopefully this works around the issue forever.
This commit is contained in:
James Shubin
2019-07-22 06:40:47 -04:00
parent 5d59cfd2c9
commit f2f9c043bf
2 changed files with 11 additions and 0 deletions

View File

@@ -58,6 +58,8 @@ func CopyStringToFs(fs engine.Fs, str, dst string) error {
}
// CopyDirToFs copies a dir from src path on the local fs to a dst path on fs.
// FIXME: I'm not sure this does the logical thing when the dst path is a dir.
// FIXME: We've got a workaround for this inside of the lang CLI GAPI.
func CopyDirToFs(fs engine.Fs, src, dst string) error {
return util.CopyDiskToFs(fs, src, dst, false)
}