13#ifndef GDALALG_VSI_COPY_INCLUDED
14#define GDALALG_VSI_COPY_INCLUDED
16#include "gdalalgorithm.h"
27 static constexpr const char *NAME =
"copy";
28 static constexpr const char *DESCRIPTION =
29 "Copy files located on GDAL Virtual System Interface (VSI).";
30 static constexpr const char *HELP_URL =
"/programs/gdal_vsi_copy.html";
32 static std::vector<std::string> GetAliasesStatic()
37 GDALVSICopyAlgorithm();
40 std::string m_source{};
41 std::string m_destination{};
42 bool m_recursive =
false;
45 bool RunImpl(GDALProgressFunc,
void *)
override;
47 bool CopySingle(
const std::string &src,
const std::string &dst,
48 uint64_t size, GDALProgressFunc pfnProgress,
49 void *pProgressData)
const;
51 bool CopyRecursive(
const std::string &src,
const std::string &dst,
52 int depth,
int maxdepth, uint64_t &curAmount,
53 uint64_t totalAmount, GDALProgressFunc pfnProgress,
54 void *pProgressData)
const;
GDAL algorithm.
Definition gdalalgorithm_cpp.h:2261