MCPcopy Create free account
hub / github.com/apache/cloudberry / make_native_path

Function make_native_path

src/port/path.c:165–175  ·  view source on GitHub ↗

* make_native_path - on WIN32, change / to \ in the path * * This effectively undoes canonicalize_path. * * This is required because WIN32 COPY is an internal CMD.EXE * command and doesn't process forward slashes in the same way * as external commands. Quoting the first argument to COPY * does not convert forward to backward slashes, but COPY does * properly process quoted forward slashes

Source from the content-addressed store, hash-verified

163 * of the first argument.
164 */
165void
166make_native_path(char *filename)
167{
168#ifdef WIN32
169 char *p;
170
171 for (p = filename; *p; p++)
172 if (*p == '/')
173 *p = '\\';
174#endif
175}
176
177
178/*

Callers 5

pgarch_archiveXlogFunction · 0.85
BuildRestoreCommandFunction · 0.85
mainFunction · 0.85
pgwin32_CommandLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected