Boost logo

Boost Users :

Subject: Re: [Boost-users] [filesystem] boost::filesystem::current_path: No such file or directory
From: Viatcheslav.Sysoltsev_at_[hidden]
Date: 2012-09-13 03:02:06


On Thu, 13 Sep 2012 00:41:36 +0200, Frédéric Bron <frederic.bron_at_[hidden]>
wrote:

>> Please show minimal compilable code, and describe the process of
>> reproducing the error.
>
> I suspect the minimal example is this:
>
> #include <boost/filesystem.hpp>
> int main() {
> boost::filesystem::initial_path();
> return 0;
> }
>
> I does not happen very often but when it does, I just have to close
> the terminal and open a new one. I have the impression that it appears
> when I used a lot Ctrl+C to kill previous programs running in the same
> terminal but I have no proof of that.
>
> It looks very similar to that:
> http://code.google.com/p/libtorrent/issues/detail?id=132
>
> Frédéric

This happens when you remove the directory which the terminal has as
current and create it a new without terminal noticing it has been
recreated. I believe cd ~ && cd ~- in terminal should help.

-- Slava


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net