Vision - Copy files from Main Ignition server data drive to Edge PC

I have Ignition version 8.1.21 on both edge and main Ignition server.

I want to copy files from the E drive on the main Ignition server to the C drive (with same folder structure) on the PC with Ignition Edge. I have tried several things and haven't been able to get it to work.

I tried this on the edge project in the project library and also in the gateway event script.

import shutil
import os

filename = system.tag.readBlocking(['[edgeServer]ENT/LOC/Area/filename'])[0].value
driveSource = '\\\\10.10.10.10'  #IP address of the main Ignition server
path = '\\Recipes\\' + filename + '.csv'

source = driveSource + path
netAuth = "net use  \\\\10.10.10.10\\Recipes /user:username password"

driveDest = 'C:' #C drive on the edge server
destination = driveDest + path
move = shutil.copyfile(source, destination)

If I run this from the Main Server in the script console and change the main server driveSource to E: and the driveDest to the ip address of the edge server, I get permission denied. This is because the network permissions are set up one way (for security). What am I missing? I need the script to run on the edge server and copy from the main server to the edge.

I can imagine this working if the script is running from the edge server, but if the script is running from somewhere else, this drive will need to be mapped to the network with its own unique letter

The operating system client that is accessing the drives will need to sufficient read privileges on the main server to copy the file, and of course, write access will be needed in the destination folders.