Coverage Report

Created: 2026-02-14 06:52

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/gdal/apps/gdalalg_vsi_move.h
Line
Count
Source
1
/******************************************************************************
2
 *
3
 * Project:  GDAL
4
 * Purpose:  gdal "vsi move" subcommand
5
 * Author:   Even Rouault <even dot rouault at spatialys.com>
6
 *
7
 ******************************************************************************
8
 * Copyright (c) 2025, Even Rouault <even dot rouault at spatialys.com>
9
 *
10
 * SPDX-License-Identifier: MIT
11
 ****************************************************************************/
12
13
#ifndef GDALALG_VSI_MOVE_INCLUDED
14
#define GDALALG_VSI_MOVE_INCLUDED
15
16
#include "gdalalgorithm.h"
17
18
//! @cond Doxygen_Suppress
19
20
/************************************************************************/
21
/*                         GDALVSIMoveAlgorithm                         */
22
/************************************************************************/
23
24
class GDALVSIMoveAlgorithm final : public GDALAlgorithm
25
{
26
  public:
27
    static constexpr const char *NAME = "move";
28
    static constexpr const char *DESCRIPTION =
29
        "Move/rename a file/directory located on GDAL Virtual System Interface "
30
        "(VSI).";
31
    static constexpr const char *HELP_URL = "/programs/gdal_vsi_move.html";
32
33
    static std::vector<std::string> GetAliasesStatic()
34
0
    {
35
0
        return {"mv", "ren", "rename"};
36
0
    }
37
38
    GDALVSIMoveAlgorithm();
39
40
  private:
41
    std::string m_source{};
42
    std::string m_destination{};
43
44
    bool RunImpl(GDALProgressFunc, void *) override;
45
};
46
47
//! @endcond
48
49
#endif