rename

rename (이름 변경·이동)

rename()은 파일 시스템 객체를 old_p에서 new_p로 이동하거나 이름을 바꿔요.

출처: cppreference

본문

rename은 경로 old_p가 가리키는 객체를 new_p로 이동하거나 이름을 변경해요. POSIX rename과 유사해요.

void rename( const std::filesystem::path& old_p,
             const std::filesystem::path& new_p );

반환값 (Return value)

없음.

더 알아보기 (Learn more)

cppreference