13#ifndef GDALALG_VSI_LIST_INCLUDED
14#define GDALALG_VSI_LIST_INCLUDED
16#include "gdalalgorithm.h"
18#include "cpl_json_streaming_writer.h"
31 static constexpr const char *NAME =
"list";
32 static constexpr const char *DESCRIPTION =
33 "List files of one of the GDAL Virtual System Interface (VSI).";
34 static constexpr const char *HELP_URL =
"/programs/gdal_vsi_list.html";
36 static std::vector<std::string> GetAliasesStatic()
41 GDALVSIListAlgorithm();
44 CPLJSonStreamingWriter m_oWriter;
45 std::string m_filename{};
46 std::string m_format{};
47 std::string m_output{};
49 bool m_stdout =
false;
50 bool m_longListing =
false;
51 bool m_recursive =
false;
52 bool m_JSONAsTree =
false;
53 bool m_absolutePath =
false;
55 std::vector<std::string> m_stackNames{};
57 bool RunImpl(GDALProgressFunc,
void *)
override;
58 void Print(
const char *str);
59 void PrintEntry(
const VSIDIREntry *entry);
60 static void JSONPrint(
const char *pszTxt,
void *pUserData);
GDAL algorithm.
Definition gdalalgorithm_cpp.h:2261
Directory entry.
Definition cpl_vsi.h:408