file_manip.cpp File Reference

Useful file management helpers. More...

#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <utime.h>
#include <limits.h>
#include <stdlib.h>
#include <cstdio>
#include <cerrno>
#include <iostream>
#include <fstream>
#include <vector>
#include "op_file.h"
#include "file_manip.h"
#include "string_manip.h"
Include dependency graph for file_manip.cpp:

Functions

bool copy_file (string const &source, string const &destination)
bool is_directory (string const &dirname)
bool is_files_identical (string const &file1, string const &file2)
string const op_realpath (string const &name)
bool op_file_readable (string const &file)
bool create_file_list (list< string > &file_list, string const &base_dir, string const &filter, bool recursive)
string op_dirname (string const &file_name)
string op_basename (string const &path_name)

Detailed Description

Useful file management helpers.

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
Philippe Elie
John Levon

Function Documentation

bool copy_file ( string const &  source,
string const &  destination 
)

References op_file_readable().

bool create_file_list ( list< string > &  file_list,
string const &  base_dir,
string const &  filter,
bool  recursive 
)
bool is_directory ( string const &  dirname  ) 
bool is_files_identical ( string const &  file1,
string const &  file2 
)
string op_basename ( string const &  path_name  ) 
string op_dirname ( string const &  file_name  ) 
bool op_file_readable ( string const &  file  ) 

References op_file_readable().

string const op_realpath ( string const &  name  ) 

Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1