必需的參數
- path: 要建立的目錄的完全限定路徑(例如,
/tmp/mydirectory)。
可選的參數
- force:控制操作是否在 path 參數中設定的路徑中建立丟失的目錄。 允許的值為
true和false。 預設值為true。
輸出屬性
- file:path:新建立目錄的完整路徑。
- file:cdate:目錄建立的日期和時間。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
建立目錄,可選擇建立任何缺失的父目錄。
/tmp/mydirectory)。true和false。 預設值為true。<!-- Creating an input item with the path attribute -->
<arc:set attr="input.path" value="/tmp/foo/bar/newdir"/>
<!-- Calling fileMakeDir and passing in the input item -->
<arc:call op="fileMakeDir" in="input" out="result">
<!-- Optional: Logging information about the created directory to the application log -->
<arc:set attr="_log.info" value="A new directory located at [result.file:path], was created at [result.file:cdate]."/>
</arc:call>