diff options
author | Norbert Preining <norbert@preining.info> | 2023-01-12 03:01:29 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-01-12 03:01:29 +0000 |
commit | 6a7900c93acc16d1bbd2f1e26286c7dd7387e6c0 (patch) | |
tree | 76196287351cba68a51934c49468bf1a7846aa76 /dviware/dvisvgm/src/FileSystem.hpp | |
parent | c1c19023b4b1d43cb874f84df5102b485853e672 (diff) |
CTAN sync 202301120301
Diffstat (limited to 'dviware/dvisvgm/src/FileSystem.hpp')
-rw-r--r-- | dviware/dvisvgm/src/FileSystem.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
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 <martin.gieseking@uos.de> ** +** Copyright (C) 2005-2023 Martin Gieseking <martin.gieseking@uos.de> ** ** ** ** 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); |