mirror of https://github.com/databricks/cli.git
add comment
This commit is contained in:
parent
4cd9b17625
commit
84d1bbf2d5
|
@ -76,6 +76,9 @@ func (f *copyFile) PersistToDisk() error {
|
||||||
}
|
}
|
||||||
defer srcFile.Close()
|
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)
|
content, err := io.ReadAll(srcFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue