Linux Command Create Folder If Not Exist

[Solved] Linux Command Create Folder If Not Exist | Php - Code Explorer | yomemimo.com
Question : linux command create folder if not exist

Answered by : dennis-muensterer-10gav4t7fjtq

mkdir -p foo

Source : https://stackoverflow.com/questions/793858/how-to-mkdir-only-if-a-directory-does-not-already-exist | Last Update : Sat, 14 Nov 20

Question : Create directory if it does not exist

Answered by : defeated-dugong-2sd00afmm5i4

string currentPath = Directory.GetCurrentDirectory();
if (!Directory.Exists(Path.Combine(currentPath, "ACH"))) Directory.CreateDirectory(Path.Combine(currentPath, "ACH"));
//at this point your folder should exist

Source : https://stackoverflow.com/questions/3343206/how-to-create-a-folder-in-the-application-installed-directory | Last Update : Thu, 19 Aug 21

Answers related to linux command create folder if not exist

Code Explorer Popular Question For Php