19 lines
467 B
C
19 lines
467 B
C
|
#pragma once
|
||
|
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
namespace file {
|
||
|
/**
|
||
|
* @param source
|
||
|
* @param target If empty then the file will be deleted
|
||
|
* @return
|
||
|
*/
|
||
|
extern bool move(std::string& error, const std::string& source, const std::string& target);
|
||
|
|
||
|
extern void drop_backup(const std::string& source);
|
||
|
extern std::string register_backup(const std::string& source);
|
||
|
extern void rollback();
|
||
|
|
||
|
extern bool file_locked(const std::string& file);
|
||
|
}
|