Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
307 views
in Technique[技术] by (71.8m points)

php - mkdir: No such file or directory -- Windows, OneDrive

Like the name says, mkdir is failing with a warning of "No such file or directory" on one of our VMs. I am trying to create a folder in a synced OneDrive folder. I know it's possible because it runs perfectly fine on my machine. I cannot for the life of me figure out why it won't work on the vm, though.

The path is 100% legit. I'm able to copy-paste it into file explorer and it will open right to it. I have permissions on the folder, it's running in the command line so nothing to do with Apache or any web server restrictions, and I'm passing in the recursive flag.

What am I missing?

$path = path_base();
if ( !is_dir( $path ) ) { mkdir( $path, 777, True ); }
question from:https://stackoverflow.com/questions/65910420/mkdir-no-such-file-or-directory-windows-onedrive

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...