summaryrefslogtreecommitdiffstats
path: root/wsd/TraceFile.hpp
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2020-01-18 15:56:01 +0000
committerMichael Meeks <michael.meeks@collabora.com>2020-01-21 15:07:54 +0000
commit0599db3576838fcd3d736a2c93db0c7e0024f812 (patch)
treed54dedf8f054334015f94d0b66aff243e7c6e047 /wsd/TraceFile.hpp
parentkit: show the correct documentLoad URL when a template is used. (diff)
downloadonline-0599db3576838fcd3d736a2c93db0c7e0024f812.tar.gz
online-0599db3576838fcd3d736a2c93db0c7e0024f812.zip
copyFile: de-poco-ize and handle EINTR and short writes.
Change-Id: I2046881c786a9f31f45c53f282de9ddd9a9cebcf
Diffstat (limited to 'wsd/TraceFile.hpp')
-rw-r--r--wsd/TraceFile.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsd/TraceFile.hpp b/wsd/TraceFile.hpp
index 82f5a75ce8..e95fbb2e29 100644
--- a/wsd/TraceFile.hpp
+++ b/wsd/TraceFile.hpp
@@ -25,6 +25,7 @@
#include "Protocol.hpp"
#include "Log.hpp"
#include "Util.hpp"
+#include "FileUtil.hpp"
/// Dumps commands and notification trace.
class TraceFileRecord
@@ -141,8 +142,7 @@ public:
filename += '.' + origPath.getExtension();
snapshot = Poco::Path(_path, filename).toString();
- LOG_TRC("TraceFile: Copying local file [" << localPath << "] to snapshot [" << snapshot << "].");
- Poco::File(localPath).copyTo(snapshot);
+ FileUtil::copyFileTo(localPath, snapshot);
snapshot = Poco::URI(Poco::URI("file://"), snapshot).toString();
LOG_TRC("TraceFile: Mapped URL " << url << " to " << snapshot);