SECFileSystem::RenameDirectory

BOOLSECFileSystem::RenameDirectory(const CString&OldName, const CString&NewName)

Renames a directory.

Defined in: filesys.cpp

Return Value

Nonzero if successful; 0 if an error occurred.

Parameters

OldName

The name of the directory to rename.

NewName

The new name of the directory.

Comments

To rename a directory.

It is not an error to rename a directory to the same name.

Example

BOOL bRetVal = fs.RenameDirectory("c:\\foo", "c:\\bar");

See Also

SECFileSystem  RenameFile