Contains xtd::abstract_object class.
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.hpp:85
Provides the base class for both xtd::io::file_info and xtd::io::directory_info objects.
Definition file_system_info.hpp:87
const xtd::date_time & last_access_time() const
Gets the time the current file or directory was last accessed.
xtd::string full_path_
Represents the fully qualified path of the directory or file.
Definition file_system_info.hpp:629
xtd::io::file_system_info & last_write_time(const xtd::date_time &value)
Sets the time when the current file or directory was last written to.
xtd::date_time creation_time_utc() const
Gets the creation time, in coordinated universal time (UTC), of the current file or directory.
const xtd::date_time & creation_time() const
Gets the creation time of the current file or directory.
xtd::io::file_attributes attributes() const
Gets the attributes for the current file or directory.
xtd::date_time last_write_time_utc() const
Gets the time, in coordinated universal time (UTC), when the current file or directory was last writt...
xtd::string full_name() const
Gets the full path of the directory or file.
xtd::date_time last_access_time_utc() const
Gets the time, in coordinated universal time (UTC), that the current file or directory was last acces...
xtd::io::file_system_info & creation_time_utc(const xtd::date_time &value)
Sets the creation time, in coordinated universal time (UTC), of the current file or directory.
xtd::io::file_system_info & last_write_time_utc(const xtd::date_time &value)
Sets the time, in coordinated universal time (UTC), when the current file or directory was last writt...
xtd::io::file_system_info & creation_time(const xtd::date_time &value)
Gets the creation time of the current file or directory.
xtd::io::file_system_info & attributes(xtd::io::file_attributes value)
Sets the attributes for the current file or directory.
xtd::io::file_system_info & permissions(xtd::io::file_permissions value)
Sets the permissions for the current file or directory.
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.
xtd::io::file_permissions permissions() const
Gets the permissions for the current file or directory.
file_system_info()=default
Initializes a new instance of the xtd::io::file_system_info class.
const xtd::date_time & last_write_time() const
Gets the time when the current file or directory was last written to.
xtd::string to_string() const noexcept override
Returns the original path. Use the xtd::io::file_system_info::full_name or xtd::io::file_system_info:...
xtd::io::file_system_info & last_access_time(const xtd::date_time &value)
Sets the time the current file or directory was last accessed.
xtd::io::file_system_info & last_access_time_utc(const xtd::date_time &value)
Sets the time, in coordinated universal time (UTC), that the current file or directory was last acces...
virtual bool exists() const =0
Gets a value indicating whether the file or directory exists.
virtual void remove() const =0
Deletes a file or directory.
virtual xtd::string extension() const
Gets the extension part of the file name, including the leading dot . even if it is the entire file n...
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
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
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.