MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / addFile

Method addFile

launcher/mojang/PackageManifest.cpp:50–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void Package::addFile(const Path& path, const File& file) {
51 addFolder(path.parent_path());
52 files[path] = file;
53}
54
55void Package::addFolder(Path folder) {
56 if(!folder.has_parent_path()) {

Callers 2

fromJsonFunction · 0.80
fromInspectedFolderMethod · 0.80

Calls 1

parent_pathMethod · 0.80

Tested by

no test coverage detected