Forum Discussion

PANDAmonium's avatar
PANDAmonium
Resolver IV
1 year ago
Solved

Copy Lakehouse Files

Hi All,   I'm trying to use a notebook to copy the Files directory from one lakehouse to another. It looks something like this:   sourcePath = f"{[sourceAbfsPath]}/Files" targetPath = f"{[target...
  • PANDAmonium's avatar
    1 year ago

    I also can't move directories or files into the Files folder using 

    notebookutils.fs.mv() . Possibly due to the Files folder being a managed OneLake folder so CRUD operations are restricted to it.  This post, mssparkutils file operations, ran into the same issue and has a more detailed explination in the replies. Going to follow their solution of creating a subdirectory within Files to house everything; it seems like the simplest and most flexible solution.