10namespace Arp {
namespace System {
namespace Commons {
namespace Io
19 File& operator=(
const File& arg) =
delete;
57 static void Copy(
const String& sourcePath,
const String& destinationPath,
bool createDirectory =
true,
bool overwrite =
true);
70 static void Copy(
const String& sourcePath,
const String& destinationPath,
bool createDirectory,
bool overwrite,
bool sync);
82 static void Move(
const String& sourcePath,
const String& destinationPath,
bool createDirectory =
true,
bool overwrite =
true);
95 static void Move(
const String& sourcePath,
const String& destinationPath,
bool createDirectory,
bool overwrite,
bool sync);
115 static void WriteAll(
const String& path,
const std::vector<byte>& data,
bool sync);
API to manage and manipulate single files.
Definition: File.hpp:15
static void Move(const String &sourcePath, const String &destinationPath, bool createDirectory=true, bool overwrite=true)
Moves a file from source path to destination path. After successful operation, the synchronization of...
static void Delete(const String &path)
Deletes the file from the filesystem. After successful operation, the synchronization of the file sys...
static void WriteAll(const String &path, const std::vector< byte > &data)
Writes the data in data into file identified by path. After successful operation, the synchronization...
static void Sync(const String &path)
Force file system synchronization for the given file.
static void Move(const String &sourcePath, const String &destinationPath, bool createDirectory, bool overwrite, bool sync)
Moves a file from source path to destination path.
static bool Exists(const String &path)
Checks for existence of a file.
static std::vector< byte > ReadAll(const String &path)
Reads data from file and returns it as byte array.
static void WriteAll(const String &path, const std::vector< byte > &data, bool sync)
Writes the data in data into file identified by path.
static void SyncAll(void)
Force global file system synchronization.
static void Delete(const String &path, bool sync)
Deletes the file from the filesystem.
static void Copy(const String &sourcePath, const String &destinationPath, bool createDirectory=true, bool overwrite=true)
Copies a file from source path to destination path. After successful operation, the synchronization o...
static void Copy(const String &sourcePath, const String &destinationPath, bool createDirectory, bool overwrite, bool sync)
Copies a file from source path to destination path.
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API