2004-12-03 22:17:46 +03:00
|
|
|
#ifndef MC_FILE_H
|
|
|
|
#define MC_FILE_H
|
1998-02-27 07:54:42 +03:00
|
|
|
|
1999-01-14 04:10:32 +03:00
|
|
|
#include "fileopctx.h"
|
1998-11-18 05:31:23 +03:00
|
|
|
|
1998-04-17 04:21:53 +04:00
|
|
|
struct link;
|
|
|
|
|
2009-03-08 12:49:28 +03:00
|
|
|
FileProgressStatus copy_file_file (FileOpContext *ctx, const char *s, const char *d,
|
|
|
|
int ask_overwrite, off_t *progress_count,
|
|
|
|
double *progress_bytes, int is_toplevel_file);
|
|
|
|
FileProgressStatus move_dir_dir (FileOpContext *ctx, const char *s, const char *d,
|
|
|
|
off_t *progress_count, double *progress_bytes);
|
|
|
|
FileProgressStatus copy_dir_dir (FileOpContext *ctx, const char *s, const char *d, int toplevel,
|
|
|
|
int move_over, int delete, struct link *parent_dirs,
|
|
|
|
off_t *progress_count, double *progress_bytes);
|
|
|
|
FileProgressStatus erase_dir (FileOpContext *ctx, const char *s, off_t *progress_count,
|
|
|
|
double *progress_bytes);
|
1998-02-27 07:54:42 +03:00
|
|
|
|
2003-08-18 08:35:28 +04:00
|
|
|
int panel_operate (void *source_panel, FileOperation op, int force_single);
|
1998-11-18 05:31:23 +03:00
|
|
|
|
1998-12-05 02:39:41 +03:00
|
|
|
extern int file_op_compute_totals;
|
1998-02-27 07:54:42 +03:00
|
|
|
|
|
|
|
/* Error reporting routines */
|
|
|
|
|
2003-08-18 08:35:28 +04:00
|
|
|
/* Report error with one file */
|
2009-03-08 12:49:28 +03:00
|
|
|
FileProgressStatus file_error (const char *format, const char *file);
|
2003-08-18 08:35:28 +04:00
|
|
|
|
1998-02-27 07:54:42 +03:00
|
|
|
/* Query routines */
|
1998-12-05 02:39:41 +03:00
|
|
|
|
2004-08-29 20:42:40 +04:00
|
|
|
void compute_dir_size (const char *dirname, off_t *ret_marked,
|
2003-08-18 08:35:28 +04:00
|
|
|
double *ret_total);
|
1998-11-18 05:31:23 +03:00
|
|
|
|
2004-12-03 22:17:46 +03:00
|
|
|
#endif
|