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 
19 namespace comphelper
20 {
22 {
23 public:
24  static OUString splitAtLastToken(const OUString& rSrc, sal_Unicode aToken, OUString& rRight);
25  static bool fileExists(const OUString& rBaseURL);
26  static bool dirExists(const OUString& rDirURL);
27 
28  // all rDirs and rFiles strings are already URI encoded, so safe for concat
29  static void scanDirsAndFiles(const OUString& rDirURL, std::set<OUString>& rDirs,
30  std::set<std::pair<OUString, OUString>>& rFiles);
31  static bool deleteDirRecursively(const OUString& rDirURL);
32  static bool moveDirContent(const OUString& rSourceDirURL, std::u16string_view rTargetDirURL,
33  const std::set<OUString>& rExcludeList);
34 };
35 }
36 
37 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt16 sal_Unicode
#define COMPHELPER_DLLPUBLIC
bool fileExists(const OString &fileName)