aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-01 20:53:39 +0100
committerMax Kellermann <max@duempel.org>2014-03-01 20:53:39 +0100
commit5268f55344229f70e3565f63671eb582eaff733f (patch)
treef16f39a0847ea56b03db8892c3368251e4f2b3bf /src/fs
parente44c9a000d477ba9fd24bd77ab4b529001dd3bde (diff)
downloadmpd-5268f55344229f70e3565f63671eb582eaff733f.tar.gz
mpd-5268f55344229f70e3565f63671eb582eaff733f.tar.xz
mpd-5268f55344229f70e3565f63671eb582eaff733f.zip
java/File: add method ToAbsolutePath() returning AllocatedPath
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/StandardDirectory.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/fs/StandardDirectory.cxx b/src/fs/StandardDirectory.cxx
index fce54a677..20d66bb10 100644
--- a/src/fs/StandardDirectory.cxx
+++ b/src/fs/StandardDirectory.cxx
@@ -246,13 +246,7 @@ AllocatedPath GetUserMusicDir()
#elif defined(USE_XDG)
return GetUserDir("XDG_MUSIC_DIR");
#elif defined(ANDROID)
- char buffer[1024];
- if (Environment::getExternalStoragePublicDirectory(buffer,
- sizeof(buffer),
- "Music") == nullptr)
- return AllocatedPath::Null();
-
- return AllocatedPath::FromUTF8(buffer);
+ return Environment::getExternalStoragePublicDirectory("Music");
#else
return AllocatedPath::Null();
#endif