Skip to content

Commit 9827cbf

Browse files
compile: fix export binaries when trying to copy a folder
1 parent e6c2e6b commit 9827cbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)