Talk:cpp/filesystem/create directory

create_directories throws an error("The filename or extension is too long") if the path length is greater than 256 chars. Is there any institution or any workaround?


 * filename length limit is baked into the filesystem, and most of them, from NTFS to Ext4, have a hard limit at 255 (though 255 of which units differs). And even when it's larger (as in ReiserFS, with 4032 byte limit), OS can still constrain it (as does Linux). It's not what any programming language can help with. --Cubbi (talk) 11:44, 16 March 2022 (PDT)