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

◆ full_name()

xtd::string xtd::io::file_system_info::full_name ( ) const

Gets the full path of the directory or file.

Returns
A string containing the full path.
Examples
The following example demonstrates the xtd::io::file_system_info::full_name property. This code example is part of a larger example provided for the xtd::io::file_system_info class.
static void display_file_system_info_attributes(const file_system_info& fsi) {
// Assume that this entry is a file.
string entry_type = "File";
// Determine if entry is really a directory
entry_type = "Directory";
}
// Show this entry's type, name, and creation date.
console::write_line("{0} entry {1} was created on {2:D}", entry_type, fsi.full_name(), fsi.creation_time());
}
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
const xtd::date_time & creation_time() const
Gets the creation time of the current file or directory.
xtd::io::file_attributes attributes() const
Gets the attributes for the current file or directory.
xtd::string full_name() const
Gets the full path of the directory or file.
Provides the base class for both xtd::io::file_info and xtd::io::directory_info objects.
Definition file_system_info.h:87
@ directory
The file is a directory.
Remarks
For example, for a file c:\new_file.txt, this property returns "c:\new_file.txt".
For a list of common I/O tasks, see Common I/O Tasks.
Examples
file_info2.cpp, and file_info_move_to.cpp.