diff options
author | Karl Berry <karl@freefriends.org> | 2023-01-20 01:55:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-01-20 01:55:04 +0000 |
commit | 2c99129a39be3be6622c7efa6826222141d4de1e (patch) | |
tree | 95f4cdda555eef7f4e9a98994ce081e2364a8a4a /Build/source/texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp | |
parent | 5817f54a04657ab24f46489d2ddb97d47c3bef79 (diff) |
dvisvgm-3.0.1 + patches linked from https://github.com/TeX-Live/texlive-source/pull/59#issuecomment-1397666966
git-svn-id: svn://tug.org/texlive/trunk@65593 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp index 86f6dbf2017..376ab859278 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/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); |