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