--- parser3/src/include/pa_common.h 2001/07/07 17:59:02 1.45 +++ parser3/src/include/pa_common.h 2001/09/14 15:41:59 1.48 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_common.h,v 1.45 2001/07/07 17:59:02 parser Exp $ + $Id: pa_common.h,v 1.48 2001/09/14 15:41:59 parser Exp $ */ #ifndef PA_COMMON_H @@ -102,12 +102,22 @@ void file_write(Pool& pool, throws an exception in case of problems */ void file_delete(Pool& pool, const String& file_spec); +/** + move specified file + throws an exception in case of problems +*/ +void file_move(Pool& pool, const String& old_spec, const String& new_spec); bool file_readable(const String& file_spec); bool dir_readable(const String& file_spec); bool file_executable(const String& file_spec); -size_t file_size(const String& file_spec); +bool file_stat(const String& file_spec, + size_t& rsize, + time_t& ratime, + time_t& rmtime, + time_t& rctime, + bool fail_on_read_problem=true); /** scans for @a delim[default \n] in @a *row_ref,