247 [[nodiscard]] virtual auto
exists() const ->
bool = 0;
574 [[nodiscard]] virtual auto name() const ->
xtd::
string = 0;
Contains xtd::abstract_object class.
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.hpp:83
auto last_access_time_utc() const -> xtd::date_time
Gets the time, in coordinated universal time (UTC), that the current file or directory was last acces...
virtual auto exists() const -> bool=0
Gets a value indicating whether the file or directory exists.
xtd::string full_path_
Represents the fully qualified path of the directory or file.
Definition file_system_info.hpp:629
auto last_write_time() const -> const xtd::date_time &
Gets the time when the current file or directory was last written to.
auto creation_time() const -> const xtd::date_time &
Gets the creation time of the current file or directory.
auto last_access_time() const -> const xtd::date_time &
Gets the time the current file or directory was last accessed.
auto full_name() const -> xtd::string
Gets the full path of the directory or file.
virtual auto extension() const -> xtd::string
Gets the extension part of the file name, including the leading dot . even if it is the entire file n...
auto last_write_time_utc() const -> xtd::date_time
Gets the time, in coordinated universal time (UTC), when the current file or directory was last writt...
xtd::string original_path_
The path originally specified by the user, whether relative or absolute.
Definition file_system_info.hpp:631
void refresh()
Refreshes the state of the object.
file_system_info()=default
Initializes a new instance of the xtd::io::file_system_info class.
auto attributes() const -> xtd::io::file_attributes
Gets the attributes for the current file or directory.
auto creation_time_utc() const -> xtd::date_time
Gets the creation time, in coordinated universal time (UTC), of the current file or directory.
auto permissions() const -> xtd::io::file_permissions
Gets the permissions for the current file or directory.
virtual void remove() const =0
Deletes a file or directory.
auto to_string() const noexcept -> xtd::string override
Returns the original path. Use the xtd::io::file_system_info::full_name or xtd::io::file_system_info:...
Contains core_export_ keyword.
Contains xtd::date_time class.
Contains xtd::io::file_attributes enum class.
Contains xtd::io::file_permissions enum class.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
file_attributes
Provides attributes for files and directories.
Definition file_attributes.hpp:24
file_permissions
Provides permissions for files and directories.
Definition file_permissions.hpp:24
@ none
No permission bits are set.
Definition file_permissions.hpp:26
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::string alias.