Creating and removing directories
A new directory can be created by sending the mkdir: message to the CfsDirectoryDescriptor class. An existing directory can be removed by sending the rmdir: message to the CfsDirectoryDescriptor class.
CfsDirectoryDescriptor mkdir: 'data'.
CfsDirectoryDescriptor rmdir: 'data'.
 
Note:
Deleting the current working directory can result in unrecoverable errors due to platform operating system behavior. Platforms with drives demand special caution, because they usually maintain a separate working directory for each drive. Changing the current working directory to another drive before deleting the old working directory will not necessarily prevent an error from occurring, because the current working directory associated with the original drive can remain unchanged. Instead, change the current working directory to the root of the drive containing the directory you want to delete.
 
"The wrong way"
"Current working directory might be C:\USELESS"
CfsDirectoryDescriptor chdir: 'D:\APPLICATION'.
CfsDirectoryDescriptor rmdir: 'C:\USELESS'.
"The right way"
"Current working directory might be C:\USELESS"
"Prevents working dir for drive C: from being USELESS"
CfsDirectoryDescriptor chdir: 'C:\'.
"If you really want to end up in this dir"
CfsDirectoryDescriptor chdir: 'D:\APPLICATION'.
CfsDirectoryDescriptor rmdir: 'C:\USELESS'.
CfsDirectoryDescriptor chdir: 'C:\'.
Last modified date: 01/29/2015