Revision [136]

This is an old revision of dirDelete made by JohnMcIntosh on 2008-10-15 02:27:34.

 

sqInt dir_Delete(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 delete a directory

Responsibility:
Delete the directory entry if the path name encoded is correct and within file system rules.
Platform 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

Unix
Uses rmdir, so the directory must be empty. Also has to invalidate the directory being iterated over by dir_Lookup and close it if needbe.

Windows

BUGS

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