Revision [134]

This is an old revision of dirCreate made by JohnMcIntosh on 2008-10-15 02:21:13.

 

sqInt dir_Create(char *pathString, sqInt pathStringLength)


Parms:
pathString directory path name to create in image encoding
pathStringLength length of name

return: return 1 for success, 0 to make primitive fail.
From: Interpreter, filePlugin
Why:
To create directory

Responsibility:
Create the directory entry if the path name encoded is correct and within file system rules.
Must ensure length of path does not violate some internal path length rule for the operating system

MacIntosh
os-9/OSXCarbon
clone of unix, but it works with Finder Aliases.

Cocoa:
TBD

iPhone
A bit more error checking and only allows UTF8 names.
Also the default permissions are set to the defaults, which may or may NOT? map to unix umask values?

Unix
check file path length, convert to system encoding, make directory with all rwx masked with umask

Windows
Convert to wide char, there is NO check for lengths, etc.
then call CreateDirectoryW

BUGS

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki