feat: add DGioFileInfo::fsType.

This commit is contained in:
Chris Xiong 2019-09-17 15:41:37 +08:00
parent 3f21a4a1b7
commit fb47d1f22f
2 changed files with 8 additions and 0 deletions

View File

@ -60,6 +60,7 @@ public:
quint64 fsTotalBytes() const;
quint64 fsUsedBytes() const;
quint64 fsFreeBytes() const;
QString fsType() const;
private:
QScopedPointer<DGioFileInfoPrivate> d_ptr;

View File

@ -207,3 +207,10 @@ quint64 DGioFileInfo::fsFreeBytes() const
return d->getAttributeUint64(G_FILE_ATTRIBUTE_FILESYSTEM_FREE);
}
QString DGioFileInfo::fsType() const
{
Q_D(const DGioFileInfo);
return d->getAttributeString(G_FILE_ATTRIBUTE_FILESYSTEM_TYPE);
}