1998-02-27 04:54:42 +00:00
|
|
|
#ifndef __FILE_H
|
|
|
|
#define __FILE_H
|
|
|
|
|
1999-01-14 01:10:32 +00:00
|
|
|
#include "fileopctx.h"
|
1998-11-18 02:31:23 +00:00
|
|
|
#include "background.h"
|
|
|
|
|
1998-02-27 04:54:42 +00:00
|
|
|
extern int know_not_what_am_i_doing;
|
|
|
|
|
1998-04-17 00:21:53 +00:00
|
|
|
struct link;
|
|
|
|
|
1999-01-14 01:10:32 +00:00
|
|
|
int copy_file_file (FileOpContext *ctx, char *s, char *d, int ask_overwrite,
|
2001-09-21 05:04:38 +00:00
|
|
|
off_t *progress_count, double *progress_bytes,
|
1998-12-29 16:52:49 +00:00
|
|
|
int is_toplevel_file);
|
1999-01-14 01:10:32 +00:00
|
|
|
int move_file_file (FileOpContext *ctx, char *s, char *d,
|
2001-09-21 05:04:38 +00:00
|
|
|
off_t *progress_count, double *progress_bytes);
|
1999-01-14 01:10:32 +00:00
|
|
|
int move_dir_dir (FileOpContext *ctx, char *s, char *d,
|
2001-09-21 05:04:38 +00:00
|
|
|
off_t *progress_count, double *progress_bytes);
|
1999-01-14 01:10:32 +00:00
|
|
|
int copy_dir_dir (FileOpContext *ctx, char *s, char *d, int toplevel, int move_over,
|
1998-12-04 23:39:41 +00:00
|
|
|
int delete, struct link *parent_dirs,
|
2001-09-21 05:04:38 +00:00
|
|
|
off_t *progress_count, double *progress_bytes);
|
|
|
|
int erase_dir (FileOpContext *ctx, char *s, off_t *progress_count, double *progress_bytes);
|
|
|
|
int erase_file (FileOpContext *ctx, char *s, off_t *progress_count, double *progress_bytes,
|
1999-01-14 01:10:32 +00:00
|
|
|
int is_toplevel_file);
|
|
|
|
int erase_dir_iff_empty (FileOpContext *ctx, char *s);
|
1998-02-27 04:54:42 +00:00
|
|
|
|
1998-12-17 04:51:24 +00:00
|
|
|
int panel_operate (void *source_panel, FileOperation op,
|
1999-01-14 01:10:32 +00:00
|
|
|
char *thedefault, int ask_user);
|
|
|
|
char *file_mask_dialog (FileOpContext *ctx, FileOperation operation, char *text, char *def_text,
|
1998-11-18 02:31:23 +00:00
|
|
|
int only_one, int *do_background);
|
|
|
|
|
1998-12-04 23:39:41 +00:00
|
|
|
extern int file_op_compute_totals;
|
1998-02-27 04:54:42 +00:00
|
|
|
|
|
|
|
/* Error reporting routines */
|
|
|
|
/* Report error with one file */
|
|
|
|
int file_error (char *format, char *file);
|
|
|
|
|
|
|
|
/* Report error with two files */
|
|
|
|
int files_error (char *format, char *file1, char *file2);
|
|
|
|
|
|
|
|
/* Query routines */
|
1998-12-04 23:39:41 +00:00
|
|
|
|
1998-02-27 04:54:42 +00:00
|
|
|
extern int background_wait;
|
|
|
|
|
1998-11-18 02:31:23 +00:00
|
|
|
int is_wildcarded (char *p);
|
2001-09-21 05:04:38 +00:00
|
|
|
void compute_dir_size (char *dirname, off_t *ret_marked, double *ret_total);
|
1998-11-18 02:31:23 +00:00
|
|
|
|
2001-09-21 05:04:38 +00:00
|
|
|
#endif /* !__FILE_H */
|