Search code examples
c++boostdirectoryboost-filesystem

create_directory("/MyPath/.MyFolder") is not creating directory; expected that a hidden directory is created


I want to create a hidden directory in Boost 1.7.3 . When I try :

boost::filesystem::create_directory("/MyPath/.myFolder");

It doesn't work, it does nothing. I tried looking at the doc, but I can't find an answer.


Solution

  • It turns out I'm just stupid. I'm developing in Ubuntu and I used command ls to verify if my directory was created, but this command doesn't show hidden files. ll does. It was working since the beginning.