Important: The information in this document is obsolete and should not be used for new development.
FSpDirCreate
You can use theFSpDirCreatefunction to create a new directory.
FUNCTION FSpDirCreate (spec: FSSpec; scriptTag: ScriptCode; VAR createdDirID: LongInt): OSErr;
spec- An
FSSpecrecord 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
StandardPutFileorCustomPutFileprocedure, specify the script code returned in the reply record. (See the chapter "Standard File Package" in this book for a description ofStandardPutFileandCustomPutFile.) Otherwise, specify the system script by setting thescriptTagparameter to the valuesmSystemScript.createdDirID- The directory ID of the directory that was created.
DESCRIPTION
TheFSpDirCreatefunction creates a new directory and returns the directory ID of the new directory in thecreatedDirIDparameter. ThenFSpDirCreatesets the date and time of creation and last modification to the current date and time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forFSpDirCreateare
Trap macro Selector _HighLevelHFSDispatch $0005 RESULT CODES