mc/src/file.h

43 lines
1.5 KiB
C
Raw Normal View History

1998-02-27 07:54:42 +03:00
#ifndef __FILE_H
#define __FILE_H
#include "fileopctx.h"
#include "background.h"
extern int safe_delete;
1998-02-27 07:54:42 +03:00
struct link;
int copy_file_file (FileOpContext *ctx, char *s, char *d, int ask_overwrite,
off_t *progress_count, double *progress_bytes,
int is_toplevel_file);
int move_file_file (FileOpContext *ctx, char *s, char *d,
off_t *progress_count, double *progress_bytes);
int move_dir_dir (FileOpContext *ctx, char *s, char *d,
off_t *progress_count, double *progress_bytes);
int copy_dir_dir (FileOpContext *ctx, char *s, char *d, int toplevel, int move_over,
int delete, struct link *parent_dirs,
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,
int is_toplevel_file);
int erase_dir_iff_empty (FileOpContext *ctx, char *s);
1998-02-27 07:54:42 +03:00
int panel_operate (void *source_panel, FileOperation op,
char *thedefault, int ask_user);
extern int file_op_compute_totals;
1998-02-27 07:54:42 +03: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 */
void compute_dir_size (char *dirname, off_t *ret_marked, double *ret_total);
#endif /* !__FILE_H */