10 namespace 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);
108 static void WriteAll(
const String& path,
const std::vector<byte>& data);
115 static void WriteAll(
const String& path,
const std::vector<byte>& data,
bool sync);
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 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. After successful operation, the synchronization...
static std::vector< byte > ReadAll(const String &path)
Reads data from file and returns it as byte array.
static void Sync(const String &path)
Force file system synchronization for the given file.
Root namespace for the PLCnext API
static void Delete(const String &path)
Deletes the file from the filesystem. After successful operation, the synchronization of the file sys...
static void SyncAll(void)
Force global file system synchronization.
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. After successful operation, the synchronization o...
System components used by the System, Device, Plc or Io domains.