|
wiRedPanda
Logic Circuit Simulator
|
Functions | |
| void | copyToDir (const QString &srcPath, const QString &destDir) |
| bool | filesHaveSameContent (const QFileInfo &a, const QFileInfo &b) |
|
inline |
Copies the file at srcPath into destDir if it does not already exist there. No-op for empty paths, resource paths (":/..."), or files already in destDir.
Definition at line 17 of file FileUtils.h.
References PANDACEPTION_WITH_CONTEXT.
Referenced by WorkSpace::save().
|
inline |
Returns true if a and b are the same file on disk or hold identical bytes. Used to tell a harmless "same file, same name" re-add from a genuine name collision (a different file that happens to share a name), which would otherwise be silently mis-bound.
Definition at line 45 of file FileUtils.h.
Referenced by ICController::addICFromFile().