MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / get_full_path

Function get_full_path

src/common/isc_file.cpp:1326–1338  ·  view source on GitHub ↗

Expand the full file name for incomplete or relative paths in Windows. Notice the API doesn't guarantee that the resulting path and filename are valid. In this regard, our custom ShortToLongPathName() is more thorough, although it produces different results, because it skips "." and ".." in the path.

Source from the content-addressed store, hash-verified

1324// In this regard, our custom ShortToLongPathName() is more thorough, although
1325// it produces different results, because it skips "." and ".." in the path.
1326static bool get_full_path(const tstring& part, tstring& full)
1327{
1328 TEXT buf[MAXPATHLEN];
1329 TEXT *p;
1330 const int l = GetFullPathName(part.c_str(), MAXPATHLEN, buf, &p);
1331 if (l && l < MAXPATHLEN)
1332 {
1333 full = buf;
1334 return true;
1335 }
1336
1337 return false;
1338}
1339#endif
1340
1341

Callers 1

ISC_expand_filenameFunction · 0.85

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected