as @Prabakar Ammeappin​ said just use https://github.com/databrickslabs/migrate or just use export option in notebook (in File top menu) or go to workspace click arrow and choose export (possible for both directory and notebook)


My blog: https://databrickster.medium.com/