6#include "../iequatable.h"
138 using iterator_category = std::input_iterator_tag;
150 value_type operator *()
const;
173 using iterator_category = std::input_iterator_tag;
185 value_type operator *()
const;
208 using iterator_category = std::input_iterator_tag;
220 value_type operator *()
const;
Represents text as a sequence of character units.
Definition basic_string.h:79
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
Represent directory iterator used by xtd::io::directory_info.
Definition directory_info.h:132
Represent file iterator used by xtd::io::directory_info.
Definition directory_info.h:167
Represent file system iterator used by xtd::io::directory_info.
Definition directory_info.h:202
Exposes instance methods for creating, moving, and enumerating through directories and subdirectories...
Definition directory_info.h:129
std::vector< xtd::io::directory_info > get_directories(const xtd::string &search_pattern) const
Returns an array of directories in the current DirectoryInfo matching the given search criteria.
directory_info(const xtd::string &path)
Initializes a new instance of the xtd::io::directory_info class on the specified path.
xtd::io::directory_info parent() const
Gets the parent directory of a specified subdirectory.
xtd::io::directory_info::file_system_info_iterator enumerate_file_system_infos() const
Returns an enumerable collection of file system information in the current directory.
xtd::io::directory_info::file_iterator enumerate_files(const xtd::string &search_pattern) const
Returns an enumerable collection of file information that matches a search pattern.
bool exists() const override
Gets a value indicating whether the directory exists.
void remove(bool recursive) const
Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files.
void remove() const override
Deletes this xtd::io::directory_info if it is empty.
std::vector< xtd::io::file_info > get_files(const xtd::string &search_pattern) const
Returns a file list from the current directory matching the given search pattern.
xtd::io::directory_info::directory_iterator enumerate_directories(const xtd::string &search_pattern) const
Returns an enumerable collection of directory information that matches a specified search pattern.
std::vector< xtd::io::directory_info > get_directories() const
Returns the subdirectories of the current directory.
xtd::string name() const override
Gets the name of this xtd::io::directory_info instance.
void create()
Creates a directory.
std::vector< xtd::io::file_info > get_files() const
Returns a file list from the current directory.
std::vector< xtd::sptr< xtd::io::file_system_info > > get_file_system_infos() const
Returns an array of strongly typed xtd::io::file_system_info entries representing all the files and s...
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...
std::vector< xtd::sptr< xtd::io::file_system_info > > get_file_system_infos(const xtd::string &search_pattern) const
Retrieves an array of strongly typed FileSystemInfo objects representing the files and subdirectories...
void move_to(const xtd::string &dest_dir_name)
Moves a DirectoryInfo instance and its contents to a new path.
xtd::io::directory_info::file_iterator enumerate_files() const
Returns an enumerable collection of file information in the current directory.
xtd::io::directory_info::directory_iterator enumerate_directories() const
Returns an enumerable collection of directory information in the current directory.
xtd::io::directory_info root() const
Gets the root portion of the directory.
static const directory_info empty
Represents the uninitialized xtd::io::directory_info object. This field is constant.
Definition directory_info.h:240
xtd::io::directory_info::file_system_info_iterator enumerate_file_system_infos(const xtd::string &search_pattern) const
Returns an enumerable collection of file system information that matches a specified search pattern.
Exposes static methods for creating, moving, and enumerating through directories and subdirectories....
Definition directory.h:101
Provides static methods for the creation, copying, deletion, moving, and opening of files,...
Definition file_info.h:41
Provides the base class for both xtd::io::file_info and xtd::io::directory_info objects.
Definition file_system_info.h:87
Performs operations on std::basic_string instances that contain file or directory path information....
Definition path.h:36
Contains xtd::io::file_system_info class.
#define core_export_
Define shared library export.
Definition core_export.h:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
@ directory
The file is a directory.
@ other
The operating system is other.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10