6#if !defined(__XTD_CORE_NATIVE_LIBRARY__)
7#error "Do not include this file: Internal use only"
12#include <xtd/core_native_export>
35 class core_native_export_
drive final {
50 static bool get_available_free_space(
const std::string& root_path_name,
size_t& free_bytes,
size_t& total_number_of_bytes,
size_t& total_number_of_free_bytes);
66 static bool get_volume_information(
const std::string& root_path_name, std::string& volume_name, std::string& file_system_name);
72 static bool set_Volume_label(
const std::string& root_path_name,
const std::string& volume_name);
Provides access to information on a drive.
Definition drive_info.h:33
Contains drive native API.
Definition drive.h:35
static bool get_available_free_space(const std::string &root_path_name, size_t &free_bytes, size_t &total_number_of_bytes, size_t &total_number_of_free_bytes)
Gets available free space for specified root path.
static int32_t get_drive_type(const std::string &root_path_name)
Gets drive type.
static bool set_Volume_label(const std::string &root_path_name, const std::string &volume_name)
Sets volume label.
static bool get_volume_information(const std::string &root_path_name, std::string &volume_name, std::string &file_system_name)
Gets volume information.
static std::vector< std::string > get_drives()
Gets system drive names array.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::io::drive_type enum class.