diff options
Diffstat (limited to 'CPP/7zip/UI/FileManager/Panel.cpp')
-rw-r--r-- | CPP/7zip/UI/FileManager/Panel.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CPP/7zip/UI/FileManager/Panel.cpp b/CPP/7zip/UI/FileManager/Panel.cpp index 6702fa9c..e8c0b947 100644 --- a/CPP/7zip/UI/FileManager/Panel.cpp +++ b/CPP/7zip/UI/FileManager/Panel.cpp @@ -797,6 +797,18 @@ bool CPanel::IsArcFolder() const return GetFolderTypeID().IsPrefixedBy_Ascii_NoCase("7-Zip"); } +bool CPanel::IsHashFolder() const +{ + if (_folder) + { + NCOM::CPropVariant prop; + if (_folder->GetFolderProperty(kpidIsHash, &prop) == S_OK) + if (prop.vt == VT_BOOL) + return VARIANT_BOOLToBool(prop.boolVal); + } + return false; +} + UString CPanel::GetFsPath() const { if (IsFSDrivesFolder() && !IsDeviceDrivesPrefix() && !IsSuperDrivesPrefix()) |