あなたの質問は、完全な回答を得るのに十分な情報を提供していません。言語としての C++ には、その意味でフォルダーやファイルを操作する関数が実際にはありません。これは、C++ がプラットフォームに依存しないためです。つまり、C++ コードをコンパイルして、Windows、MacOS、iOS、Android、Linux など、ファイル システムを持たない他の多くのデバイスで実行できます。
もちろん、あなたの場合、おそらく Windows または Linux のいずれかを指しています。その場合は、ファイル システム関数を使用してファイル システム内のファイルをコピーまたは移動できます。
Windows の場合、Win32 API には、ファイルをコピーするためのCopyFileおよび CopyFileEx 関数と、ファイルを移動または名前変更するためのMoveFileおよび MoveFileEx 関数があります。
Linux の場合、sendfile API 関数を使用して、カーネルを使用してファイルをコピーできます。
C/C++ でプラットフォームに依存しないコードを記述して、open/read/write 関数を使用してファイルの内容を別のファイルにコピーできることを指摘しておく必要があります (つまり、ソース ファイルを読み取りモードで開き、ターゲット ファイルを開きます)。書き込みモードで、ソースからの読み取りとターゲットへの書き込みをソース ファイルの最後に到達するまで続けます) が、他のファイル システム関数は、プラットフォーム固有のライブラリなしで再現することが不可能ではないにしても、より困難です。
アップデート
Linux で実行することを指定したので、sendfile 関数を使用する方法は次のとおりです。
int inputFileDesc;
int outputFileDesc;
struct stat statBuffer;
off_t offset = 0;
// open the source file, and get a file descriptor to identify it later (for closing and sendfile fn)
inputFileDesc = open ("path_to_source_file", O_RDONLY);
// this function will fill the statBuffer struct with info about the file, including the size in bytes
fstat (inputFileDesc, &statBuffer);
// open the destination file and get a descriptor to identify it later (for closing and writing to it)
outputFileDesc = open ("path_to_destination_file", O_WRONLY | O_CREAT, statBuffer.st_mode);
// this is the API function that actually copies file data from source to dest;
// it takes as params the descriptors of the input and output files and an offset and length for the amount of data to copy over
sendfile (outputFileDesc, inputFileDesc, &offset, statBuffer.st_size);
close (outputFileDesc); // closes the output file (identified by descriptor)
close (inputFileDesc); // closes the input file (identified by descriptor)