--- parser3/src/classes/file.C 2007/04/23 10:30:09 1.156 +++ parser3/src/classes/file.C 2007/08/20 10:02:51 1.159 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_FILE_C="$Date: 2007/04/23 10:30:09 $"; +static const char * const IDENT_FILE_C="$Date: 2007/08/20 10:02:51 $"; #include "pa_config_includes.h" @@ -36,9 +36,6 @@ static const char * const IDENT_FILE_C=" #define NAME_NAME "name" -#define FILE_NAME_MUST_BE_STRING "file name must be string" -#define FILE_NAME_MUST_NOT_BE_CODE "file name must not be code" - // externs extern String sql_limit_name; @@ -185,8 +182,6 @@ static void _copy(Request& r, MethodPara String from_spec = r.absolute(vfrom_file_name.as_string()); const String& to_spec = r.absolute(vto_file_name.as_string()); - // create_dir_for_file(to_spec); - file_write_action_under_lock( to_spec, "copy", @@ -641,7 +636,11 @@ static void _lock(Request& r, MethodPara ¶ms.as_junction(1, "body must be code") }; - file_write_action_under_lock(file_spec, "lock", lock_execute_body, &info); + file_write_action_under_lock( + file_spec, + "lock", + lock_execute_body, + &info); } static int lastposafter(const String& s, size_t after, const char* substr, size_t substr_size, bool beforelast=false) {