I install boost::filesystem::path from the edit box. I notice that the constructor is happy to accept invalid characters for the file name.
boost::filesystem::path
How can I use boost::filesystem to check if boost::filesystem::path valid file name?
boost::filesystem
Look at here:
http://www.boost.org/doc/libs/release/libs/filesystem/doc/portability_guide.htm
Various functions for verifying file names are described here.
What about relative file paths?
boost :: filesystem :: windows_name ("directory / file.txt") returns false.
How can I check this? My target OS is Linux, and the target drive is a USB drive. Stick files can be used by Windows users.
Source: https://habr.com/ru/post/914785/More articles:How to upload a text file and analyze contents in a database in RoR - ruby ββ| fooobar.comMYSQL query joining table problem 2 - joinSet default permissions when creating a new message queue (MSMQ) in C # - c #Why do many binary tree data structures in C not have a parent node pointer? - chttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/914784/how-do-you-peg-versions-of-maven-artifacts-in-the-nexus-repository-manager&usg=ALkJrhjboQkuZD9i4fsJBOwZh0-C63UQSgHow to use youtube video as a source in the "video" tag in HTML5 - html5How to use dynamic duration value in output cache? - asp.net-mvc-3https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/914788/upload-files-to-ftp-from-ios-application&usg=ALkJrhgFGHJRZkuf3IBlHXI2oAyM-X5zAgIs RabbitMQ connection in blocking state? - javaHow to add the title of your soap request in C # - c #All Articles