Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FileUtils.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef FILEUTILS_H
8 #define FILEUTILS_H
9 
10 #include "Lucene.h"
11 
12 namespace Lucene
13 {
14  namespace FileUtils
15  {
17  LPPAPI bool fileExists(const String& path);
18 
20  LPPAPI uint64_t fileModified(const String& path);
21 
23  LPPAPI bool touchFile(const String& path);
24 
26  LPPAPI int64_t fileLength(const String& path);
27 
29  LPPAPI bool setFileLength(const String& path, int64_t length);
30 
32  LPPAPI bool removeFile(const String& path);
33 
35  LPPAPI bool copyFile(const String& source, const String& dest);
36 
38  LPPAPI bool createDirectory(const String& path);
39 
41  LPPAPI bool removeDirectory(const String& path);
42 
44  LPPAPI bool isDirectory(const String& path);
45 
50  LPPAPI bool listDirectory(const String& path, bool filesOnly, HashSet<String> dirList);
51 
53  LPPAPI bool copyDirectory(const String& source, const String& dest);
54 
56  LPPAPI String joinPath(const String& path, const String& file);
57 
59  LPPAPI String extractPath(const String& path);
60 
62  LPPAPI String extractFile(const String& path);
63  }
64 }
65 
66 #endif

clucene.sourceforge.net