Add GetCwd().

This commit is contained in:
Glenn Maynard
2003-09-05 06:20:55 +00:00
parent 6f99281965
commit 636dcaaa7a
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -323,6 +323,14 @@ CString GetExtension( CString sPath )
return Ext;
}
CString GetCwd()
{
char buf[PATH_MAX];
bool ret = getcwd(buf, PATH_MAX) != NULL;
ASSERT(ret);
return buf;
}
/* mkdir -p. Doesn't fail if Path already exists and is a directory. */
bool CreateDirectories( CString Path )
{