Possibly in the std::filesystem class.But is there a non os-specific method?
There are, you just haven't stumbled across them yet. Do you realize that on Unix/Linux you can "hide" a file by simply starting the name with a dot(.)?Why aren't there such cool functions in other os other than windows?
By the way on Windows to "hide" a file I believe you need to be using something other than the "FAT" based filesystem since "FAT" doesn't support most(any?) file attributes, also it appears that you need at least Windows XP for that function.