|
degate 0.1.1
|
#include "globals.h"#include "degate_exceptions.h"#include <stdexcept>#include <sstream>#include <list>#include <string>#include <sys/stat.h>#include <sys/types.h>#include <boost/filesystem/path.hpp>
Go to the source code of this file.
Namespaces | |
| namespace | degate |
The namespace 'degate' is the namespace for everything that belongs to libdegate. | |
Functions | |
| bool | degate::is_directory (std::string const &path) |
| Check if a path is a directory. | |
| bool | degate::is_file (std::string const &path) |
| Check if a path is a regular file. | |
| bool | degate::is_symlink (std::string const &path) |
| Check if a path is a symlink. | |
| bool | degate::file_exists (std::string const &path) |
| Check if a file or directory exists. | |
| std::string | degate::get_basedir (std::string const &path) |
| Get the base directory for file or directory. | |
| std::string | degate::get_realpath (std::string const &path) |
| Get the canonicalized absolute pathname. | |
| std::string | degate::get_file_suffix (std::string const &path) |
| Get a file suffix without the dot, e.g. | |
| std::string | degate::get_filename_from_path (std::string const &path) |
| Get filename part of a path. | |
| std::string | degate::get_basename (std::string const &path) |
| Get the basename of a file. | |
| void | degate::remove_file (std::string const &filename) |
| Unlink a file. | |
| void | degate::remove_directory (std::string const &path) |
| Unlink a directory with all files in it. | |
| void | degate::create_directory (std::string const &directory, mode_t mode=0700) |
| Create a directory. | |
| std::string | degate::create_temp_directory () |
| Create a temp directory. | |
| std::string | degate::create_temp_directory (std::string const &directory_pattern) |
| Create a temporary directory based on a path pattern specification. | |
| std::string | degate::generate_temp_file_pattern (std::string const &basedir) |
| Generate a pattern within a basedir for temp files. | |
| std::list< std::string > | degate::read_directory (std::string const &path, bool prefix_path=false) |
| Read all entries from a directory, but not from subdirectories. | |
| std::string | degate::join_pathes (std::string const &base_path, std::string const &extension_path) |
| Join path specifications. | |
| std::string | degate::get_relative_path (std::string const &path, std::string const &relative_to) |
| Make a path specification relative to another. | |
| boost::filesystem::path | degate::strip_path (boost::filesystem::path const &strip_from, boost::filesystem::path const &strip_what) |
| Strip the leading directory part from a path. | |
1.7.4