MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / RemoveNameFromPath

Function RemoveNameFromPath

Libraries/unrar/pathfn.cpp:206–212  ·  view source on GitHub ↗

Removes name and returns file path without the trailing path separator symbol.

Source from the content-addressed store, hash-verified

204// Removes name and returns file path without the trailing
205// path separator symbol.
206void RemoveNameFromPath(wchar *Path)
207{
208 wchar *Name=PointToName(Path);
209 if (Name>=Path+2 && (!IsDriveDiv(Path[1]) || Name>=Path+4))
210 Name--;
211 *Name=0;
212}
213
214
215#if defined(_WIN_ALL) && !defined(SFX_MODULE)

Callers 4

ExpandFolderMaskMethod · 0.85
NextMethod · 0.85
GetRarDataPathFunction · 0.85
EnumConfigPathsFunction · 0.85

Calls 2

PointToNameFunction · 0.85
IsDriveDivFunction · 0.85

Tested by

no test coverage detected