Function renameFile

Synopsis

#include <include/fsutil.hpp>

bool renameFile(const wstring &old_name, const wstring &new_name)

Description

No description yet.

Source

Lines 38-42 in src/fsutil.cpp. Line 35 in include/fsutil.hpp.

bool fsutil::renameFile( const wstring& old_name, const wstring& new_name ) {
    //NOTE: It overwrites the destination file!
    return MoveFileEx( old_name.c_str(), new_name.c_str(), MOVEFILE_WRITE_THROUGH | MOVEFILE_REPLACE_EXISTING ) !=
           FALSE; //WinAPI BOOL
}





Add Discussion as Guest

Log in