Forum Discussion

svencken's avatar
svencken
Regular Visitor
7 hours ago

notebookutils.fs.cp() cannot copy from Lakehouse shortcut to Files in Python notebook

I've been playing around with notebookutils.fs.cp() and notebookutils.fs.fastcp() in Fabric Python 3.12 notebooks.

This function seems to be unable to copy a file (e.g. PDF) from a SharePoint folder behind a Lakehouse shortcut to a directory in the Lakehouse Files. This produces a AzCopyFailedException.

Somewhat strangely, it is possible to use fs.cp() and fs.fastcp() to copy files from the shortcut to local file storage in the notebook environment and to then copy from this local file storage to the Lakehouse Files.

Has anyone come across a similar issue?

No RepliesBe the first to reply