Recursively copy the secrets from one VAULT path to another

I am trying to copy all the secrets along with the subfolders from one VAULT path to another. Example:

source = "/path/namespace/TEAM1/jenkins"

(note: the above source path consists of subfolders like job1,job2,job3… and all these subfolders contains the respective secrets in the form of key-value pairs)

destination="/path/namespace/team1/jenkins"

I could able to manually copy each secret to the destination folder, but wondering any code snippet would help me here to achieve this. Like recursively copy all the secrets along with the respective sub-folders to the destination PATH.