Skip to content

Commit 1944f02

Browse files
compile: fix export binaries when trying to copy a folder
1 parent 8ebca9f commit 1944f02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: commands/service_compile.go

+1
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ func (s *arduinoCoreServerImpl) Compile(req *rpc.CompileRequest, stream rpc.Ardu
404404
return &cmderrors.PermissionDeniedError{Message: i18n.Tr("Error reading build directory"), Cause: err}
405405
}
406406
buildFiles.FilterPrefix(baseName)
407+
buildFiles.FilterOutDirs()
407408
for _, buildFile := range buildFiles {
408409
exportedFile := exportPath.Join(buildFile.Base())
409410
logrus.WithField("src", buildFile).WithField("dest", exportedFile).Trace("Copying artifact.")

0 commit comments

Comments
 (0)