File Manager
A simple file manager written in C++ using Qt 6.
|
#include <QtCore>
Functions | |
QString | format_bytes (qint64 bytes) |
Format the provided number as bytes. | |
void | copyOrMoveDirectorySubtree (const QString &from, const QString &to, bool copyAndRemove, bool overwriteExistingFiles) |
copyOrMoveDirectorySubtree | |
void copyOrMoveDirectorySubtree | ( | const QString & | from, |
const QString & | to, | ||
bool | copyAndRemove, | ||
bool | overwriteExistingFiles ) |
copyOrMoveDirectorySubtree
from | |
to | |
copyAndRemove | If true , move instead of copy. |
overWriteExistingFiles | If true , overwrite existing files at the destination. Destructive. |
Copies a folder and all its contents. Reference: https://forum.qt.io/topic/105993/copy-folder-qt-c/5?_=1675790958476&lang=en-GB
QString format_bytes | ( | qint64 | bytes | ) |
Format the provided number as bytes.
This file contains utility functions that are used throughout the application.
bytes |
Aims to present the number in a human-friendly format. Converts bytes to a higher order unit ("KB", "MB", "GB", "TB"), if possible.