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


Namespaces | Functions
FileUtils.h File Reference
#include "Lucene.h"
+ Include dependency graph for FileUtils.h:

Go to the source code of this file.

Namespaces

 Lucene
 
 Lucene::FileUtils
 

Functions

LPPAPI bool Lucene::FileUtils::fileExists (const String &path)
 Return true if given file or directory exists. More...
 
LPPAPI uint64_t Lucene::FileUtils::fileModified (const String &path)
 Return file last modified date and time. More...
 
LPPAPI bool Lucene::FileUtils::touchFile (const String &path)
 Set file last modified date and time to now. More...
 
LPPAPI int64_t Lucene::FileUtils::fileLength (const String &path)
 Return file length in bytes. More...
 
LPPAPI bool Lucene::FileUtils::setFileLength (const String &path, int64_t length)
 Set new file length, truncating or expanding as required. More...
 
LPPAPI bool Lucene::FileUtils::removeFile (const String &path)
 Delete file from file system. More...
 
LPPAPI bool Lucene::FileUtils::copyFile (const String &source, const String &dest)
 Copy a file to/from file system. More...
 
LPPAPI bool Lucene::FileUtils::createDirectory (const String &path)
 Create new directory under given location. More...
 
LPPAPI bool Lucene::FileUtils::removeDirectory (const String &path)
 Delete directory from file system. More...
 
LPPAPI bool Lucene::FileUtils::isDirectory (const String &path)
 Return true if given path points to a directory. More...
 
LPPAPI bool Lucene::FileUtils::listDirectory (const String &path, bool filesOnly, HashSet< String > dirList)
 Return list of files (and/or directories) under given directory. More...
 
LPPAPI bool Lucene::FileUtils::copyDirectory (const String &source, const String &dest)
 Copy a directory to/from file system. More...
 
LPPAPI String Lucene::FileUtils::joinPath (const String &path, const String &file)
 Return complete path after joining given directory and file name. More...
 
LPPAPI String Lucene::FileUtils::extractPath (const String &path)
 Extract parent path from given path. More...
 
LPPAPI String Lucene::FileUtils::extractFile (const String &path)
 Extract file name from given path. More...
 

clucene.sourceforge.net