#ifndef SAO_FILEFUNCTIONS_H #define SAO_FILEFUNCTIONS_H #include #include namespace Sao { QString longFilePath(const QString& path); quint32 fileAttributes(const QString& path, quint32 mask = 0xFFFFFFFF); bool setFileAttributes(const QString& path, quint32 attributes, quint32 mask = 0xFFFFFFFF); bool hasFileAttributeReadOnly(const QString& path); bool hasFileAttributeHidden(const QString& path); bool hasFileAttributeSystem(const QString& path); bool setFileAttributeReadOnly(const QString& path, bool readOnly); bool setFileAttributeHidden(const QString& path, bool hidden); bool setFileAttributeSystem(const QString& path, bool system); bool fileExists(const QString& path); quint64 fileSize(const QString& path); QDateTime fileTimeCreated(const QString& path); QDateTime fileTimeLastModified(const QString& path); QDateTime fileTimeLastAccessed(const QString& path); } // namespace Sao #endif // SAO_FILEFUNCTIONS_H