From 6a7900c93acc16d1bbd2f1e26286c7dd7387e6c0 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 12 Jan 2023 03:01:29 +0000 Subject: CTAN sync 202301120301 --- dviware/dvisvgm/src/FileSystem.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'dviware/dvisvgm/src/FileSystem.hpp') diff --git a/dviware/dvisvgm/src/FileSystem.hpp b/dviware/dvisvgm/src/FileSystem.hpp index 86f6dbf201..376ab85927 100644 --- a/dviware/dvisvgm/src/FileSystem.hpp +++ b/dviware/dvisvgm/src/FileSystem.hpp @@ -2,7 +2,7 @@ ** FileSystem.hpp ** ** ** ** This file is part of dvisvgm -- a fast DVI to SVG converter ** -** Copyright (C) 2005-2022 Martin Gieseking ** +** Copyright (C) 2005-2023 Martin Gieseking ** ** ** ** This program is free software; you can redistribute it and/or ** ** modify it under the terms of the GNU General Public License as ** @@ -28,7 +28,7 @@ class FileSystem { class TemporaryDirectory { friend class FileSystem; public: - TemporaryDirectory (const std::string &folder, std::string prefix); + TemporaryDirectory (const std::string &folder, std::string prefix, bool inplace=false); TemporaryDirectory (TemporaryDirectory &&tmpdir) =default; ~TemporaryDirectory (); TemporaryDirectory& operator = (TemporaryDirectory &&tmpdir) =default; @@ -47,11 +47,12 @@ class FileSystem { static bool copy (const std::string &src, const std::string &dest, bool remove_src=false); static uint64_t filesize (const std::string &fname); static std::string ensureForwardSlashes (std::string path); + static std::string ensureSystemSlashes (std::string path); static std::string getcwd (); #ifdef _WIN32 static std::string getcwd (char drive); #endif - static std::string tmpdir (); + static std::string tmpdir (bool inplace=false); static bool chdir (const std::string &dir); static bool exists (const std::string &fname); static bool mkdir (const std::string &dirname); -- cgit v1.2.3