Kaydet (Commit) b8c75485 authored tarafından Michael Meeks's avatar Michael Meeks

ignore backup files in services/ directory to avoid debugging grief

üst ca23cdbf
......@@ -289,6 +289,13 @@ Reference< registry::XSimpleRegistry > readRdbDirectory(
url),
css::uno::Reference< css::uno::XInterface >());
}
rtl::OUString aName = stat.getFileName();
// Ignore backup files - to allow people to edit their
// services/ without extremely confusing behaviour
if (aName.toChar() == '.' || aName.endsWithAsciiL("~", 1))
continue;
if (stat.getFileType() != osl::FileStatus::Directory) { //TODO: symlinks
last = readRdbFile(
stat.getFileURL(), fatalErrors, last, simpleRegistryFactory,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment