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

Method ToAbsolutePath

src/java/File.cxx:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23AllocatedPath
24Java::File::ToAbsolutePath(JNIEnv *env, jobject _file) noexcept
25{
26 LocalObject file(env, _file);
27
28 const jstring path = GetAbsolutePath(env, file);
29 if (DiscardException(env) || path == nullptr)
30 return nullptr;
31
32 Java::String path2(env, path);
33 return AllocatedPath::FromFS(path2.ToString());
34}

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.80

Tested by

no test coverage detected