add debug messages to VCS::checkparentdirs (ticket #8295)

This commit is contained in:
Stephan Witt 2012-08-15 17:50:24 +02:00
parent 4950bb5ebc
commit 4f1fb3f6d1

View File

@ -102,9 +102,11 @@ bool VCS::checkparentdirs(FileName const & file, std::string const & pathname)
{
FileName dirname = file.onlyPath();
FileName tocheck = FileName(addName(dirname.absFileName(),pathname));
LYXERR(Debug::LYXVC, "check file: " << tocheck.absFileName());
bool result = tocheck.exists();
while ( !result && !dirname.empty() ) {
dirname = dirname.parentPath();
LYXERR(Debug::LYXVC, "check directory: " << dirname.absFileName());
tocheck = FileName(addName(dirname.absFileName(),pathname));
result = tocheck.exists();
}