xtd 0.2.0
Loading...
Searching...
No Matches

◆ to_string()

xtd::string xtd::io::file_system_info::to_string ( ) const
overridevirtualnoexcept

Returns the original path. Use the xtd::io::file_system_info::full_name or xtd::io::file_system_info::name properties for the full path or file/directory name.

Returns
A string with the original path.
Note
The string returned by the xtd::io::file_system_info::tto_string method represents the path that was passed to the constructor of the class implementing xtd::io::file_system_info. Instead of calling the xtd::io::file_system_info::to_string method, you should retrieve the value of either of the following properties, depending on your intent:
  • xtd::io::file_system_info::name, to get the name of the file or directory, without any parent path information.
  • xtd::io::file_system_info::full_name, to get the fully qualified path of the file or directory.

Reimplemented from xtd::object.

Examples
file_info2.cpp.