Initializing help system before first use

# makepath

Purpose
Create a new directory including its parents if necessary.
Synopsis
`procedure makepath(dirname:string|text)`
`procedure makepath(dirname:string|text,last_is_file:boolean)`
Arguments

dirname | The name and path of the directory to be created
last_is_file | If true, the last component of the path is ignored

Further information
1. This routine creates the directory dirname as well as intermediate directories in the path if necessary. For instance, makepath("/tmp/dir1/dir2") will create "/tmp" then "/tmp/dir1" before "/tmp/dir1/dir2" if these directories are missing.
2. As opposed to makedir, this routine does not return an error condition if the path already exists.
3. The second form of this procedure can be used when the argument is a path to a file in order to create the directory in which the file can be created. For instance, makepath("/tmp/dir1/myfile",true) will create "/tmp/dir1" such that file /tmp/dir1/myfile" can be created.
Related topics
removedir, makedir, getsysstat
Module
mmsystem
Parent Topic Procedures and functions

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.