Important: The information in this document is obsolete and should not be used for new development.
FSpDirCreate
You can use theFSpDirCreate
function to create a new directory.
FUNCTION FSpDirCreate (spec: FSSpec; scriptTag: ScriptCode; VAR createdDirID: LongInt): OSErr;
spec
- An
FSSpec
record specifying the directory to be created.scriptTag
- The code of the script system in which the directory name is to be displayed. If you have established the name and location of the new directory using either the
StandardPutFile
orCustomPutFile
procedure, specify the script code returned in the reply record. (See the chapter "Standard File Package" in this book for a description ofStandardPutFile
andCustomPutFile
.) Otherwise, specify the system script by setting thescriptTag
parameter to the valuesmSystemScript
.createdDirID
- The directory ID of the directory that was created.
DESCRIPTION
TheFSpDirCreate
function creates a new directory and returns the directory ID of the new directory in thecreatedDirID
parameter. ThenFSpDirCreate
sets the date and time of creation and last modification to the current date and time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forFSpDirCreate
are
Trap macro Selector _HighLevelHFSDispatch $0005 RESULT CODES