1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| /*-------------------------------------------------------------------------
| *
| * copydir.h
| * Copy a directory.
| *
| * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
| * Portions Copyright (c) 1994, Regents of the University of California
| *
| * src/include/storage/copydir.h
| *
| *-------------------------------------------------------------------------
| */
| #ifndef COPYDIR_H
| #define COPYDIR_H
|
| typedef enum FileCopyMethod
| {
| FILE_COPY_METHOD_COPY,
| FILE_COPY_METHOD_CLONE,
| } FileCopyMethod;
|
| /* GUC parameters */
| extern PGDLLIMPORT int file_copy_method;
|
| extern void copydir(const char *fromdir, const char *todir, bool recurse);
| extern void copy_file(const char *fromfile, const char *tofile);
|
| #endif /* COPYDIR_H */
|
|