Current working directory A string specifying the full path for the current working directory can be obtained by sending getcwd to the CfsDirectoryDescriptor class. To change the current working directory, use chdir: as in the following examples: CfsDirectoryDescriptor chdir: 'C:\WINDOWS'. CfsDirectoryDescriptor chdir: 'system'. CfsDirectoryDescriptor chdir: CfsDirectoryDescriptor rootDirectories last.