10 namespace Arp {
namespace System {
namespace Commons {
namespace Io
24 File& operator=(
const File& arg) =
delete;
55 static void Copy(
const String& sourcePath,
const String& destinationPath,
bool createDirectory =
true,
bool overwrite =
true);
67 static void Move(
const String& sourcePath,
const String& destinationPath,
bool createDirectory =
true,
bool overwrite =
true);
80 static void WriteAll(
const String& path,
const std::vector<byte>& data);
static void Move(const String &sourcePath, const String &destinationPath, bool createDirectory=true, bool overwrite=true)
Moves a file from source path to destination path.
static bool Exists(const String &path)
Checks for existence of a file.
static void WriteAll(const String &path, const std::vector< byte > &data)
Writes the data in data into file identified by path.
static std::vector< byte > ReadAll(const String &path)
Reads data from file and returns it as byte array.
Root namespace for the PLCnext API
static void Delete(const String &path)
Deletes the file from the filesystem.
API to manage and manipulate single files.
Definition: File.hpp:14
static void Copy(const String &sourcePath, const String &destinationPath, bool createDirectory=true, bool overwrite=true)
Copies a file from source path to destination path.
System components used by the System, Device, Plc or Io domains.