mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
Ref T515, utility functions for file name/path etc.
This commit is contained in:
committed by
Mat Sutcliffe
parent
a0c8f3778b
commit
107464d92a
@@ -249,6 +249,11 @@ namespace BlackMisc
|
||||
return CBuildConfig::isRunningOnWindowsNtPlatform() ? Qt::CaseInsensitive : Qt::CaseSensitive;
|
||||
}
|
||||
|
||||
bool CFileUtils::isFileNameCaseSensitive()
|
||||
{
|
||||
return CFileUtils::osFileNameCaseSensitivity() == Qt::CaseSensitive;
|
||||
}
|
||||
|
||||
bool CFileUtils::matchesExcludeDirectory(const QString &directoryPath, const QString &excludePattern, Qt::CaseSensitivity cs)
|
||||
{
|
||||
if (directoryPath.isEmpty() || excludePattern.isEmpty()) { return false; }
|
||||
|
||||
Reference in New Issue
Block a user