1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
12 #include <sal/config.h>
14 #include <comphelper/comphelperdllapi.h>
15 #include <rtl/ustring.hxx>
17 #include <string_view>
21 class COMPHELPER_DLLPUBLIC DirectoryHelper
24 static std::u16string_view
splitAtLastToken(std::u16string_view rSrc
, sal_Unicode aToken
,
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: */