Rosetta 3.3
|
Platform independent operations on files (except I/O) More...
#include <utility/file/file_sys_util.hh>
#include <utility/file/PathName.hh>
#include <utility/basic_sys_util.hh>
#include <utility/exit.hh>
#include <utility/random.functions.hh>
#include <utility/io/izstream.hh>
#include <utility/io/ozstream.hh>
#include <utility/io/mpistream.hh>
#include <iostream>
#include <errno.h>
#include <sys/stat.h>
#include <dirent.h>
#include <sys/types.h>
Namespaces | |
namespace | utility |
unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 1. | |
namespace | utility::file |
Functions | |
bool | utility::file::file_exists (std::string const &path) |
Does File Exist? | |
int | utility::file::file_delete (std::string const &path) |
Delete File. | |
std::string | utility::file::file_extension (std::string const &filename) |
Extension of a File Name. | |
std::string | utility::file::file_basename (std::string const &filename) |
Basename of a File Name. | |
long | utility::file::file_size (std::string const &filename) |
Platform independent way of getting file size. | |
bool | utility::file::create_blank_file (std::string const &blank_file) |
Create a blank file if it doesn't already exist. | |
bool | utility::file::create_directory (std::string const &dir_path) |
Create a directory if it doesn't already exist. | |
bool | utility::file::create_directory_recursive (std::string const &dir_path) |
Create a directory and its parent directories if they doesn't already exist. | |
bool | utility::file::trytry_ifstream_open (std::ifstream &ifstream_, std::string const &name, std::ios_base::openmode open_mode) |
Try to open file a few times just in case it is locked (from BOINC LIB) | |
bool | utility::file::trytry_ofstream_open (std::ofstream &ofstream_, std::string const &name, std::ios_base::openmode open_mode) |
Try to open file a few times just in case it is locked (from BOINC LIB) | |
int | utility::file::list_dir (std::string dir, utility::vector1< std::string > &files) |
FileName | utility::file::combine_names (std::vector< std::string > file_name_strings) |
Platform independent operations on files (except I/O)
Break out platform-specific code.
trytry_* functions create mutual dependency between utility/file and utility/io. Resolve this.