add comment

This commit is contained in:
Fabian Jakobs 2024-09-04 15:14:44 +02:00
parent 4cd9b17625
commit 84d1bbf2d5
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -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