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

Function ExtractSymlink

Libraries/unrar/extinfo.cpp:163–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162
163bool ExtractSymlink(CommandData *Cmd,ComprDataIO &DataIO,Archive &Arc,const wchar *LinkName)
164{
165#if defined(SAVE_LINKS) && defined(_UNIX)
166 // For RAR 3.x archives we process links even in test mode to skip link data.
167 if (Arc.Format==RARFMT15)
168 return ExtractUnixLink30(Cmd,DataIO,Arc,LinkName);
169 if (Arc.Format==RARFMT50)
170 return ExtractUnixLink50(Cmd,LinkName,&Arc.FileHead);
171#elif defined _WIN_ALL
172 // RAR 5.0 archives store link information in file header, so there is
173 // no need to additionally test it if we do not create a file.
174 if (Arc.Format==RARFMT50)
175 return CreateReparsePoint(Cmd,LinkName,&Arc.FileHead);
176#endif
177 return false;
178}

Callers 1

ExtractCurrentFileMethod · 0.85

Calls 3

ExtractUnixLink30Function · 0.85
ExtractUnixLink50Function · 0.85
CreateReparsePointFunction · 0.85

Tested by

no test coverage detected