1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
#ifndef MYDIR_H
#define MYDIR_H
#include "faststring2.h"
bool file_exists(const char *);
bool file_or_dir_exists(const char *);
bool move_file_or_dir(const char*, const char *);
bool make_directory(const char *);
bool change_dir(const char *);
faststring next_unique_file_or_dir_name(faststring, unsigned *z=NULL);
void next_file_name_in_series(faststring &, unsigned *z=NULL);
faststring get_working_directory();
faststring get_working_directory2(char *);
bool get_file_names_in_dir(std::list<faststring>&, faststring &path_name);
bool get_file_names_in_dir(std::list<faststring>&, faststring &path_name, faststring &extension_filter);
bool get_file_names_in_dir(std::list<faststring>&, faststring &path_name, std::list<faststring> &extension_filter);
long long get_file_size(faststring path_name);
int file_or_dir_type(const char *fname);
#endif
|