Revision history for dirDelete
Additions:
See iPhone
Deletions:
Additions:
Obviously need permission to delete, otherwise prim fails
If Directory contains files/directories it is not deleted
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.
use RemoveDirectoryW
If Directory contains files/directories it is not deleted
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.
use RemoveDirectoryW
Deletions:
Additions:
======**sqInt dir_Delete(char *pathString, sqInt pathStringLength)**======
Deletions:
Additions:
pathString directory path name to delete in image encoding
We must ensure the directory entry count is zero because the file manager removeItemAtPath: WOULD recursively remove all entries, but we don't want that, we want the smalltalk code to be responsible for removal of any files/directories within the directory.
We must ensure the directory entry count is zero because the file manager removeItemAtPath: WOULD recursively remove all entries, but we don't want that, we want the smalltalk code to be responsible for removal of any files/directories within the directory.
Deletions:
Additions:
Check path length, and confirm we can convert path from squeak representation to operating system needs.
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. Obviously need permission to delete, otherwise prim fails
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. Obviously need permission to delete, otherwise prim fails