Add creation of tmp folder under datastore

This commit is contained in:
Kelvin 2016-04-03 17:55:53 +01:00
parent efecc9f847
commit 22a81e42e0

View file

@ -86,6 +86,10 @@ class UploadTrackCommand extends CommandBase
$track->save();
$track->ensureDirectoryExists();
if (!is_dir(Config::get('ponyfm.files_directory') . '/tmp')) {
mkdir(Config::get('ponyfm.files_directory') . '/tmp', 0755, true);
}
if (!is_dir(Config::get('ponyfm.files_directory') . '/queued-tracks')) {
mkdir(Config::get('ponyfm.files_directory') . '/queued-tracks', 0755, true);
}