0

My Question is simple. How me know that the given file path, its extension is showed on Windows explorer or not, using boost filesystem library.

I know answer with Shell:

     SHELLFLAGSTATE shellSettings = {0};

     SHGetSettings(&shellSettings, SSF_SHOWEXTENSIONS);        

     bool isShowed = ((shellSettings.fShowExtensions == FALSE);

But with boost filesystem not. Thanks.

Khurshid
  • 2,654
  • 2
  • 21
  • 29
  • 2
    As it's not something that is portable, it's not part of the Boost filesystem library. So the answer is that you can't do this through the Boost filesystem library. – Some programmer dude Feb 13 '14 at 10:38
  • 2
    Note that "Shell" is Explorer. So it makes sense: if you want to know whether Explorer shows something, ask Explorer. – MSalters Feb 13 '14 at 11:02
  • 3
    @JoachimPileborg For that matter... What does this have to do with the file system? It's basically an option for some external program; the extensions are always present in the file system. (And `dir` will show them, regardless of what Windows Explorer does.) – James Kanze Feb 13 '14 at 11:02

0 Answers0