Typedefs | Functions | Variables

file.cpp File Reference

#include "file.h"
#include "common/wave_ex.h"
#include <ctype.h>
#include <dirent.h>
#include <pthread.h>
#include <sstream>
Include dependency graph for file.cpp:

Go to the source code of this file.


typedef struct stat stat_t


const char * GetExtension (const char *filename) throw ()
bool hasExtension (const char *filename, const char *extension) throw ()
 returns true if the given filename ends with the specified string (NOT case-sensitive)
void GetFileRoot (const char *filename, std::string &root_name)
void GetParentDirectory (const char *filename, std::string &directory) throw ()
const char * getTopDirectory (const char *filename, std::string &topDir)
 retrieves the highest known folder for the given file.
const char * GetFilename (const char *path) throw ()
void getTempfile (const char *filename, std::string &tempfile) throw ()
void getUserHomePath (std::string &path)
bool ContainsWhitespace (const char *test) throw ()
bool doesPathExist (const char *path) throw ()
void createEmptyFileIfDoesNotExist (const char *path) throw ()
bool matchesExtension (const char *filename, const char *extension) throw ()
void walkDirectoryTree (const char *rootDir, const char *matchExt, VecString &paths)
 does a recursive directory walk, and returns all paths relative to root
std::string getPathRelativeTo (const char *startFile, const char *relPath)
 given a starting filename, and then a path relative to that, return the full path of the file.
void appendPath (const char *parentDirectory, const char *nextPath, std::string &path)
 given a starting path (directory), append another piece of the path


static const char s_separator

Typedef Documentation

typedef struct stat stat_t

Definition at line 367 of file file.cpp.

Function Documentation

bool matchesExtension ( const char *  filename,
const char *  extension 
) throw ()

Definition at line 415 of file file.cpp.

Variable Documentation

const char s_separator [static]
Initial value:


Definition at line 45 of file file.cpp.