Hello everyone
## IIS role and UNC virtual folder problem direction
### The trust level of access to the shared directory (UNC) in the IIS site/virtual directory and the established application
But I still try to add UNC folder and permissions
Just use the administrator account
And confirmed that the UNC virtual folder is indeed working
But~
I found that I still can't catch it in python...
I couldn't figure out what the problem was for a while
So I had to look for other directions
## Python command mount
Then I continued to crawl
Found that there is another solution
Just call the command line directly in python to mount the hard disk
Refer to the following 2 articles
import subprocess winCMD = 'NET USE ' + settings.DOWNLOAD_DIR + ' /User:' + settings.DOWNLOAD_DIR_USERNAME + ' ' + settings.DOWNLOAD_DIR_PASSWORD subprocess.Popen(winCMD, shell=True)
In the program, you can first check whether the folder can be caught
If it doesn't work, execute this command
Then the access path directly uses the path of the network neighbors
E.g:
The problem should be solved
For your reference
grateful

Message Board
Feel free to leave suggestions and share! Thanksgiving!