我想從根文件夾複製一個空目錄到新的初始化項目中。我想這樣做,爲新項目提供初始目錄結構。grunt-init:如何複製或創建一個空目錄?
我的文件夾中,例如空目錄「我的模板/根/」,但不會被複制:
// Files to copy (and process).
var files = init.filesToCopy(props);
// Actually copy (and process) files.
init.copyAndProcess(files, props);
我嘗試這樣做:
// to copy also the empty directories
init.copy('myDir1/');
init.copy('myDir2/');
但比grunt- init崩潰:
Error: Unable to read "grunt-init-example/root/myDir1/" file (Error code: EISDIR).
我該怎麼做,以獲得一個空目錄到目標文件夾?
我使用[email protected]和[email protected]。
Your given link is dead :( – Aajahid 2014-08-31 12:58:09