summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cppuhelper/source/paths.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppuhelper/source/paths.cxx b/cppuhelper/source/paths.cxx
index dd8fe56df2bf..28a1d34658b3 100644
--- a/cppuhelper/source/paths.cxx
+++ b/cppuhelper/source/paths.cxx
@@ -101,7 +101,7 @@ bool cppu::nextDirectoryItem(osl::Directory & directory, OUString * url) {
if (stat.getFileType() != osl::FileStatus::Directory) { //TODO: symlinks
// Ignore backup and spurious junk files:
OUString name(stat.getFileName());
- if (name.match(".") || !name.endsWithIgnoreAsciiCase(u".rdb")) {
+ if (name.startsWith(".") || !name.endsWithIgnoreAsciiCase(u".rdb")) {
SAL_WARN("cppuhelper", "ignoring <" << stat.getFileURL() << ">");
} else {
*url = stat.getFileURL();