#include <xtd/xtd>
class program {
public:
static auto main() {
if (di.exists() == false)
di.create();
console::write_line(
"The parent directory of '{0}' is '{1}'", dis.
name(), parent_dir.
name());
di.remove(true);
}
};
xtd::io::directory_info parent() const
Gets the parent directory of a specified subdirectory.
xtd::string name() const override
Gets the name of this xtd::io::directory_info instance.
xtd::io::directory_info create_subdirectory(const xtd::string &path) const
Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to...
Exposes instance methods for creating, moving, and enumerating through directories and subdirectories...
Definition directory_info.h:129
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.h:175
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.h:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10