@@ -272,10 +272,17 @@ } #endif return files; } + ++ (void)changeToDirectory: (OFString*)path +{ + if (chdir([path cString])) + @throw [OFChangeDirectoryFailedException newWithClass: self + path: path]; +} + (void)changeModeOfFile: (OFString*)path toMode: (mode_t)mode { #ifndef _WIN32