namespace FileSystem {
/**
- * @brief compare two files with given filename and return true if they have the same content
- */
+ * @brief compare two files with given filename and return true if they have the same content
+ */
bool fileEquals(const QString &fn1, const QString &fn2);
/**
- * @brief Get the mtime for a filepath
- *
- * Use this over QFileInfo::lastModified() to avoid timezone related bugs. See
- * owncloud/core#9781 for details.
- */
+ * @brief Get the mtime for a filepath
+ *
+ * Use this over QFileInfo::lastModified() to avoid timezone related bugs. See
+ * owncloud/core#9781 for details.
+ */
time_t OWNCLOUDSYNC_EXPORT getModTime(const QString &filename);
bool OWNCLOUDSYNC_EXPORT setModTime(const QString &filename, time_t modTime);
/**
- * @brief Get the size for a file
- *
- * Use this over QFileInfo::size() to avoid bugs with lnk files on Windows.
- * See https://bugreports.qt.io/browse/QTBUG-24831.
- */
+ * @brief Get the size for a file
+ *
+ * Use this over QFileInfo::size() to avoid bugs with lnk files on Windows.
+ * See https://bugreports.qt.io/browse/QTBUG-24831.
+ */
qint64 OWNCLOUDSYNC_EXPORT getSize(const QString &filename);
/**
- * @brief Check if \a fileName has changed given previous size and mtime
- *
- * Nonexisting files are covered through mtime: they have an mtime of -1.
- *
- * @return true if the file's mtime or size are not what is expected.
- */
+ * @brief Check if \a fileName has changed given previous size and mtime
+ *
+ * Nonexisting files are covered through mtime: they have an mtime of -1.
+ *
+ * @return true if the file's mtime or size are not what is expected.
+ */
bool OWNCLOUDSYNC_EXPORT fileChanged(const QString &fileName,
qint64 previousSize,
time_t previousMtime);
/**
- * @brief Like !fileChanged() but with verbose logging if the file *did* change.
- */
+ * @brief Like !fileChanged() but with verbose logging if the file *did* change.
+ */
bool verifyFileUnchanged(const QString &fileName,
qint64 previousSize,
time_t previousMtime);