plastimatch
Loading...
Searching...
No Matches
file_util.cxx File Reference
#include "plmsys_config.h"
#include <fstream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <dirent.h>
#include "file_util.h"
#include "path_util.h"

Functions

int is_directory (const char *dir)
 
int is_directory (const std::string &dir)
 
int file_exists (const char *filename)
 
int file_exists (const std::string &filename)
 
uint64_t file_size (const char *filename)
 
void touch_file (const std::string &filename)
 
void copy_file (const std::string &dst_fn, const std::string &src_fn)
 
void make_directory (const char *dirname)
 
void make_directory (const std::string &dirname)
 
void make_parent_directories (const char *filename)
 
void make_parent_directories (const std::string &filename)
 
void make_directory_recursive (const std::string &dirname)
 
FILE * plm_fopen (const char *path, const char *mode)
 
FILE * plm_fopen (const std::string &path, const char *mode)
 
FILE * make_tempfile (void)
 
char * plm_getcwd (char *s, int len)
 
int plm_chdir (char *s)
 

Function Documentation

◆ copy_file()

void copy_file ( const std::string & dst_fn,
const std::string & src_fn )

◆ file_exists() [1/2]

int file_exists ( const char * filename)

◆ file_exists() [2/2]

int file_exists ( const std::string & filename)

◆ file_size()

uint64_t file_size ( const char * filename)

◆ is_directory() [1/2]

int is_directory ( const char * dir)

◆ is_directory() [2/2]

int is_directory ( const std::string & dir)

◆ make_directory() [1/2]

void make_directory ( const char * dirname)

◆ make_directory() [2/2]

void make_directory ( const std::string & dirname)

◆ make_directory_recursive()

void make_directory_recursive ( const std::string & dirname)

◆ make_parent_directories() [1/2]

void make_parent_directories ( const char * filename)

◆ make_parent_directories() [2/2]

void make_parent_directories ( const std::string & filename)

◆ make_tempfile()

FILE * make_tempfile ( void )

◆ plm_chdir()

int plm_chdir ( char * s)

◆ plm_fopen() [1/2]

FILE * plm_fopen ( const char * path,
const char * mode )

◆ plm_fopen() [2/2]

FILE * plm_fopen ( const std::string & path,
const char * mode )

◆ plm_getcwd()

char * plm_getcwd ( char * s,
int len )

◆ touch_file()

void touch_file ( const std::string & filename)