Create folder

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
davoodice2
Posts: 381
Joined: Tue Jun 15, 2021 1:14 pm

Create folder

Post by davoodice2 »

hi how to create folder with lua without os.excute?
I cant use "space" in os.excute for path of folder.my path is store in varable.

Code: Select all

	local dirPath = ...
   	os.execute( "mkdir ".. [[dirPath ]] )
or

Code: Select all

	local dirPath = ...
   	os.execute( "mkdir ".. [["dirPath" ]] )

solved!
خیام اگر ز باده مستی خوش باش
با ماهرخی اگر نشستی خوش باش
چون عاقبت کار جهان نیستی است
انگار که نیستی چو هستی خوش باش
Post Reply