src/core/SyncEvolutionUtil.cpp File Reference

#include <config.h>
#include "SyncEvolutionUtil.h"
#include "EvolutionSyncClient.h"
#include <base/test.h>
#include <boost/scoped_array.hpp>
#include <boost/foreach.hpp>
#include <fstream>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>

Include dependency graph for SyncEvolutionUtil.cpp:

Go to the source code of this file.

Functions

 CPPUNIT_REGISTRY_ADD_TO_DEFAULT ("SyncEvolution")
string normalizePath (const string &path)
void mkdir_p (const string &path)
void rm_r (const string &path)
bool isDir (const string &path)


Function Documentation

CPPUNIT_REGISTRY_ADD_TO_DEFAULT ( "SyncEvolution"   ) 

bool isDir ( const string &  path  ) 

true if the path refers to a directory

Definition at line 120 of file SyncEvolutionUtil.cpp.

References EvolutionSyncClient::throwError().

Referenced by FileSyncSource::open().

void mkdir_p ( const string &  path  ) 

ensure that m_path is writable, otherwise throw error

Definition at line 66 of file SyncEvolutionUtil.cpp.

References EvolutionSyncClient::throwError().

Referenced by FileConfigNode::flush(), and FileSyncSource::open().

string normalizePath ( const string &  path  ) 

remove multiple slashes in a row and dots directly after a slash if not followed by filename, remove trailing /

Definition at line 39 of file SyncEvolutionUtil.cpp.

Referenced by FileConfigTree::getChildren(), FileConfigTree::getRootPath(), and FileConfigTree::open().

void rm_r ( const string &  path  ) 


Generated on Sat Oct 18 17:16:59 2008 for SyncEvolution and Funambol by  doxygen 1.5.7.1