Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs committed Sep 4, 2024
1 parent 4cd9b17 commit 84d1bbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/template/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func (f *copyFile) PersistToDisk() error {
}
defer srcFile.Close()

// we read the full file into memory because we need to inspect the content
// in order to determine if it is a notebook
// Once we stop using the workspace API, we can remove this and write in a streaming fashion
content, err := io.ReadAll(srcFile)
if err != nil {
return err
Expand Down

0 comments on commit 84d1bbf

Please sign in to comment.