LibreOffice Module comphelper (master) 1
DirectoryHelper.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11
12#include <sal/config.h>
13
15#include <rtl/ustring.hxx>
16#include <set>
17#include <string_view>
18
19namespace comphelper
20{
22{
23public:
24 static std::u16string_view splitAtLastToken(std::u16string_view rSrc, sal_Unicode aToken,
25 OUString& rRight);
26 static bool fileExists(const OUString& rBaseURL);
27 static bool dirExists(const OUString& rDirURL);
28
29 // all rDirs and rFiles strings are already URI encoded, so safe for concat
30 static void scanDirsAndFiles(const OUString& rDirURL, std::set<OUString>& rDirs,
31 std::set<std::pair<OUString, OUString>>& rFiles);
32 static bool deleteDirRecursively(const OUString& rDirURL);
33 static bool moveDirContent(const OUString& rSourceDirURL, std::u16string_view rTargetDirURL,
34 const std::set<OUString>& rExcludeList);
35};
36}
37
38/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define COMPHELPER_DLLPUBLIC
bool fileExists(const OString &fileName)
sal_uInt16 sal_Unicode