android: Update app-specific/MIME type icons
[LibreOffice.git] / include / comphelper / DirectoryHelper.hxx
blob321e9f960e4aa4e36afa20d279c420175dad0be9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #pragma once
12 #include <sal/config.h>
14 #include <comphelper/comphelperdllapi.h>
15 #include <rtl/ustring.hxx>
16 #include <set>
17 #include <string_view>
19 namespace comphelper
21 class COMPHELPER_DLLPUBLIC DirectoryHelper
23 public:
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);
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);
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */