4 enum { OP_COPY
, OP_MOVE
, OP_DELETE
};
5 enum { FILE_CONT
, FILE_RETRY
, FILE_SKIP
, FILE_ABORT
};
8 extern int know_not_what_am_i_doing
;
12 int copy_file_file (char *s
, char *d
, int ask_overwrite
);
13 int move_file_file (char *s
, char *d
);
14 int erase_dir (char *s
);
15 int erase_dir_iff_empty (char *s
);
16 int move_dir_dir (char *s
, char *d
);
17 int copy_dir_dir (char *s
, char *d
, int toplevel
, int move_over
, int delete, struct link
*parent_dirs
);
19 void create_op_win (int op
, int with_eta
);
20 void destroy_op_win (void);
21 void refresh_op_win (void);
22 int panel_operate (void *source_panel
, int op
, char *thedefault
);
23 void file_mask_defaults (void);
25 extern int dive_into_subdirs
;
27 /* Error reporting routines */
28 /* Skip/Retry/Abort routine */
29 int do_file_error (char *error
);
31 /* Report error with one file */
32 int file_error (char *format
, char *file
);
34 /* Report error with two files */
35 int files_error (char *format
, char *file1
, char *file2
);
37 /* This one just displays buf */
38 int do_file_error (char *buf
);
41 /* Replace existing file */
42 int query_replace (char *destname
, struct stat
*_s_stat
, struct stat
*_d_stat
);
44 /* Query recursive delete */
45 int query_recursive (char *s
);
47 /* Callback routine for background activity */
48 int background_attention (int fd
, void *info
);
49 extern int background_wait
;