Juergen Spitzmueller <[EMAIL PROTECTED]> writes:

| Juergen Spitzmueller wrote:
| > Seems that
| > boost::filesystem asserts when it has to copy a file to a non-existing
| > directory.
| 
| Indeed:
| http://www.boost.org/libs/filesystem/doc/operations.htm#empty_rationale
| 
| I think we shouldn't just assert in this case. It took me some time to find 
| out the reason why I couldn't save anymore without crashing LyX.
| 
| We should check if the directory exists, we should check and tell the 
| user: "the backup directory $DIR does not exists. Should I create it?"

I am not sure that we should. (create it.)

We should give a message somewhere, and skip the copy.

In 1.4 this has to be done by checking the existance of the dir before
trying to write there, but on 1.5 we should just catch the exception.

-- 
        Lgb

Reply via email to