From 226ac347c51e21440d1740d85b5e9912d1ce08e5 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Mon, 6 Dec 2021 07:57:52 -0500 Subject: add upstream 11.15 --- zen/file_path.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 zen/file_path.h (limited to 'zen/file_path.h') diff --git a/zen/file_path.h b/zen/file_path.h new file mode 100644 index 00000000..e328fa8e --- /dev/null +++ b/zen/file_path.h @@ -0,0 +1,27 @@ +// ***************************************************************************** +// * This file is part of the FreeFileSync project. It is distributed under * +// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 * +// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved * +// ***************************************************************************** + +#ifndef FILE_PATH_H_3984678473567247567 +#define FILE_PATH_H_3984678473567247567 + +#include "zstring.h" + + +namespace zen +{ +struct PathComponents +{ + Zstring rootPath; //itemPath = rootPath + (FILE_NAME_SEPARATOR?) + relPath + Zstring relPath; // +}; +std::optional parsePathComponents(const Zstring& itemPath); //no value on failure + +std::optional getParentFolderPath(const Zstring& itemPath); + + +} + +#endif //FILE_PATH_H_3984678473567247567 -- cgit