Check Folder Exists And Create

[Solved] Check Folder Exists And Create | Php - Code Explorer | yomemimo.com
Question : check folder exists and create

Answered by : andy79

string subPath ="ImagesPath"; // Your code goes here
bool exists = System.IO.Directory.Exists(Server.MapPath(subPath));
if(!exists) System.IO.Directory.CreateDirectory(Server.MapPath(subPath));

Source : https://stackoverflow.com/questions/9065598/if-a-folder-does-not-exist-create-it | Last Update : Thu, 22 Jul 21

Answers related to check folder exists and create

Code Explorer Popular Question For Php