MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / LoadFile

Method LoadFile

src/SongUpdate.cxx:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40SongPtr
41Song::LoadFile(Storage &storage, std::string_view path_utf8,
42 const StorageFileInfo &info, Directory &parent)
43{
44 assert(!uri_has_scheme(path_utf8));
45 assert(VerifyRelativePathUTF8(path_utf8));
46
47 auto song = std::make_unique<Song>(path_utf8, parent);
48 if (!song->UpdateFile(storage, info))
49 return nullptr;
50
51 return song;
52}
53
54#endif
55

Callers

nothing calls this directly

Calls 5

uri_has_schemeFunction · 0.85
VerifyRelativePathUTF8Function · 0.85
ScanFileTagsWithGenericFunction · 0.85
UpdateFileMethod · 0.80
CommitMethod · 0.45

Tested by

no test coverage detected