Failed to open dir: No such file or directory

I have a script that I used to host on WAMP, but recently moved to DevKinsta. But whenever I try to run it, I get the following error, the directory does exist, because I can still run the script on WAMP, but somehow it is not working on DevKinsta, can someone help me? I am in Windows, developing locally on my pc.

Thank you

2022/07/11 02:14:45 [error] 64#64: *352 FastCGI sent in stderr: 
"PHP message: PHP Warning:  opendir(C:\Users\Cortana\Desktop\Raw Pic):
failed to open dir: No such file or directory in /www/kinsta/public/scripts/script/bulk-rename.php on line 736" while reading upstream, client: , 
server: scripts.local, request: "POST /script/bulk-rename.php HTTP/1.1", 
upstream: "fastcgi://xxx.xxx.x.x:9001", 
host: "scripts.local", 
referrer: "http://scripts.local/script/bulk-rename.php"

Hi @Jay, thanks for reaching out. So are you linking to a local directory from within the Docker container? That’s probably why it isn’t working since the Docker container can’t directly access every Windows directory since it is containerized.

The easiest way around this would be to copy your “Raw Pic” directory to ~/DevKinsta/private then link to it accordingly within your script.