Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
FileTools[MakeDirectory] - make a directory
Calling Sequence
MakeDirectory(path, recurse)
Parameters
path
-
string; path name of directory to create
recurse
(optional); expression where recurse = true or recurse=false
Description
The MakeDirectory(path, recurse) command creates a directory in the file system at the file path path.
The path argument, which must be a Maple string, specifies the path name of the directory to create.
The optional argument recurse specifies whether directories should be created recursively. If recurse=true is specified, then all directories named in path which do not exist will be created. Otherwise, only the last will be created, and an exception will be raised if the preceding directories do not exist. The default value of recurse is false.
The set of characters that are permitted in directory names is system dependent. Likewise, the character used to separate the components of a directory is system dependent. If the backslash character is to appear in the string, it must be doubled up, because Maple strings use the backslash character as an escape character.
If successful, MakeDirectory will return NULL (that is, nothing). If unsuccessful, an exception will be raised.
Examples
See Also
FileTools, FileTools[IsDirectory], FileTools[ListDirectory], FileTools[ParentDirectory], mkdir
Download Help Document