bool :dir-force ( string $DIRNAME , … )
Creates the directory DIRNAME. More than one directory name can be provided. Note that, contrary to :dir-create
, for multi-level names (eg.aaa/bbb/ccc/name
), if either of aaa, bbb or ccc doesn't exist, they will also be created.
Returns TRUE if all directories were created successfully, or FALSE otherwise.
# :dir-force example !fun :save-game $FILENAME :set &PATH :add (:env s'HOME') s'/.config/awful-games/tic-tac-toe/' :dir-force $PATH :set &f :f-rewrite :add $PATH $FILENAME # Actual savegame code here... :f-close &f !nuf
wikipage modified on 2014/0601/2317