forked from mirrors/gio-qt
feat: add DGioFileInfo::fsType.
This commit is contained in:
parent
3f21a4a1b7
commit
fb47d1f22f
@ -60,6 +60,7 @@ public:
|
||||
quint64 fsTotalBytes() const;
|
||||
quint64 fsUsedBytes() const;
|
||||
quint64 fsFreeBytes() const;
|
||||
QString fsType() const;
|
||||
|
||||
private:
|
||||
QScopedPointer<DGioFileInfoPrivate> d_ptr;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user