SECFileSystem::GetCurrentDirectory

CStringSECFileSystem::GetCurrentDirectory(const CString&FileSystem= "")

Returns the current directory name.

Defined in: filesys.cpp

Return Value

CString

Comments

To get the current working directory of the current filesystem (i.e., drive). Also, the current directory of another filesystem can be retrieved.

To get the current directory of a filesystem that is not the current filesystem, the current filesystem is changed to the requested filesystem and then the filesystem is changed back after the current working directory is retrieved.

Example

CString CurrentDir = fs.GetCurrentDirecory();
ASSERT(CurrentDir == "c:\\tmp");
CString CurrentDir = fs.GetCurrentDirecory("a:\\");
ASSERT(CurrentDir == "a:\\foo");

Parameters

FileSystem

The name of the filesystem that the current directory is retrieved for. If no filesystem or an empty string is given, the current filesystem is used.

See Also

SECFileSystem  GetCurrentFileSystem  ChangeDirectory