forked from qt-creator/qt-creator
Utils: add permissions() to FilePath
Change-Id: I89082550a4f053c400d13a34df4f9c09c65bc326 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1378,6 +1378,15 @@ QDateTime FilePath::lastModified() const
|
||||
return toFileInfo().lastModified();
|
||||
}
|
||||
|
||||
QFile::Permissions FilePath::permissions() const
|
||||
{
|
||||
if (needsDevice()) {
|
||||
QTC_ASSERT(s_deviceHooks.permissions, return {});
|
||||
return s_deviceHooks.permissions(*this);
|
||||
}
|
||||
return toFileInfo().permissions();
|
||||
}
|
||||
|
||||
bool FilePath::removeFile() const
|
||||
{
|
||||
if (needsDevice()) {
|
||||
|
||||
Reference in New Issue
Block a user