6#include "system/io/file_system_info.h"
7#include "system/io/directory_info.h"
9namespace System {
namespace IO {
55 virtual ASPOSECPP_SHARED_API
void Delete()
override;
Represents a path to a file and a file referred to by this path and provides methods for manipulating...
Definition: file_info.h:14
FileInfoPtr CopyTo(const String &destFileName, bool overwrite)
Copies the file represented by the current object to the specified location. A parameter specifies if...
FileStreamPtr Open(FileMode mode)
Opens the file represented by the current object in the specified mode for reading and writing and wi...
FileInfo(const String &path)
Constructs a new instance of FileInfo class that represents the specified file.
virtual void Delete() override
Removes the file represented by the current object.
virtual bool get_Exists() override
Returns a value that indicates if the file exists.
FileStreamPtr Open(FileMode mode, FileAccess access, FileShare share)
Opens the file represented by the current object in the specified mode, with the specified access typ...
StreamWriterPtr AppendText()
Opens a file represented by the current object for writing text using UTF-8 encoding,...
StreamReaderPtr OpenText()
Opens the existing file at the location specified by the path represented by the current object for r...
void MoveTo(const String &destFileName)
Moves the file represented by the current object to the specified location.
StreamWriterPtr CreateText()
Creates a file at the location specified by the path represented by the current object and opens it f...
FileStreamPtr OpenRead()
Opens a file represented by the current object for reading only, in 'Open' mode with shared access fo...
String get_DirectoryName()
Returns the full name of the directory in which the file represented by the current object is loctaed...
FileInfoPtr CopyTo(const String &destFileName)
Copies the file represented by the current object to the specified location. If the destination file ...
virtual String get_Name() override
Returns the name of the file.
void Decrypt()
NOT IMPLEMENTED.
FileStreamPtr Open(FileMode mode, FileAccess access)
Opens the file represented by the current object in the specified mode, with the specified access typ...
void set_IsReadOnly(bool value)
Sets or unsets the ReadOnly attribute on the file.
FileStreamPtr Create()
Creates a file at the location specified by the path represented by the current object and opens it f...
void Encrypt()
NOT IMPLEMENTED.
bool get_IsReadOnly()
Returns a value that indicates if the ReadOnly attribute is set.
FileInfoPtr Replace(const String &destinationFileName, const String &destinationBackupFileName, bool ignoreMetadataErrors)
Replaces the contents of a specified destination file with the file represented by the current FileIn...
FileInfoPtr Replace(const String &destinationFileName, const String &destinationBackupFileName)
Replaces the contents of a specified destination file with the file represented by the current FileIn...
DirectoryInfoPtr get_Directory()
Returns a DirectoryInfo object that represents a directory in which the file represented by the curre...
FileStreamPtr OpenWrite()
Opens a file represented by the current object for writing only, in 'OpenOrCreate' mode with no shari...
int64_t get_Length()
Returns the size of the file in bytes.
String ToString() const override
Returns a path represented by the current object.
The base class for FileInfo and DirectoryInfo. Objects of this class should only be allocated using S...
Definition: file_system_info.h:31
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
FileAccess
Specifies the type of access when opening the file.
Definition: file_access.h:11
FileShare
Specifies what kind of access other FileStream objects can have to a file being opened.
Definition: file_share.h:11
FileMode
Specifies how a file should be opened.
Definition: file_mode.h:10
Definition: db_command.h:9