97 [[nodiscard]] auto
is_ready() const noexcept ->
bool;
105 [[nodiscard]] auto
name() const noexcept ->
xtd::
string;
169 xtd::
string drive_name_;
Contains xtd::array class.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Exposes instance methods for creating, moving, and enumerating through directories and subdirectories...
Definition directory_info.hpp:130
auto is_ready() const noexcept -> bool
Gets a value that indicates whether a drive is ready.
auto total_free_space() const -> xtd::size
Gets the total amount of free space available on a drive, in bytes.
auto total_size() const -> xtd::size
Gets the total size of storage space on a drive, in bytes.
auto root_directory() const noexcept -> xtd::io::directory_info
Gets the root directory of a drive.
auto to_string() const noexcept -> xtd::string override
Returns a drive name as a string.
drive_info(const xtd::string &drive_name)
Provides access to information on the specified drive.
auto volume_label() const -> xtd::string
Gets the volume label of a drive.
auto name() const noexcept -> xtd::string
Gets the name of a drive, such as C:.
auto drive_format() const -> xtd::string
Gets the name of the file system, such as NTFS or FAT32.
static auto get_drives() noexcept -> xtd::array< xtd::io::drive_info >
Retrieves the drive names of all logical drives on a computer.
auto drive_type() const -> xtd::io::drive_type
Gets the drive type, such as CD-ROM, removable, network, or fixed.
auto available_free_space() const -> xtd::size
Indicates the amount of available free space on a drive, in bytes.
static const drive_info empty
Represents the uninitialized xtd::io::drive_info object. This field is constant.
Definition drive_info.hpp:40
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Contains core_export_ keyword.
Contains xtd::io::directory_info class.
Contains xtd::io::drive_type enum class.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.hpp:17
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.