7#include "../abstract.hpp"
8#include "../core_export.hpp"
9#include "../date_time.hpp"
10#include "../string.hpp"
631 xtd::
string original_path_;
Represents text as a sequence of character units.
Definition basic_string.hpp:79
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::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.
void refresh()
Refreshes the state of the object.
xtd::io::file_permissions permissions() const
Gets the permissions for the current file or directory.
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 xtd::io::file_attributes enum class.
Contains xtd::io::file_permissions enum class.
#define abstract_
This keyword is used to represents an abstract class.
Definition abstract.hpp:25
#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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10