PostgreSQL Source Code
git master
copydir.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* copydir.h
4
* Copy a directory.
5
*
6
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7
* Portions Copyright (c) 1994, Regents of the University of California
8
*
9
* src/include/storage/copydir.h
10
*
11
*-------------------------------------------------------------------------
12
*/
13
#ifndef COPYDIR_H
14
#define COPYDIR_H
15
16
typedef
enum
FileCopyMethod
17
{
18
FILE_COPY_METHOD_COPY
,
19
FILE_COPY_METHOD_CLONE
,
20
}
FileCopyMethod
;
21
22
/* GUC parameters */
23
extern
PGDLLIMPORT
int
file_copy_method
;
24
25
extern
void
copydir
(
const
char
*fromdir,
const
char
*todir,
bool
recurse);
26
extern
void
copy_file
(
const
char
*fromfile,
const
char
*tofile);
27
28
#endif
/* COPYDIR_H */
PGDLLIMPORT
#define PGDLLIMPORT
Definition:
c.h:1291
FileCopyMethod
FileCopyMethod
Definition:
copydir.h:17
FILE_COPY_METHOD_COPY
@ FILE_COPY_METHOD_COPY
Definition:
copydir.h:18
FILE_COPY_METHOD_CLONE
@ FILE_COPY_METHOD_CLONE
Definition:
copydir.h:19
copy_file
void copy_file(const char *fromfile, const char *tofile)
Definition:
copydir.c:133
copydir
void copydir(const char *fromdir, const char *todir, bool recurse)
Definition:
copydir.c:48
file_copy_method
PGDLLIMPORT int file_copy_method
Definition:
copydir.c:34
src
include
storage
copydir.h
Generated on Mon May 12 2025 12:13:28 for PostgreSQL Source Code by
1.9.4