mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 14:37:59 +01:00
Add creation of tmp folder under datastore
This commit is contained in:
parent
efecc9f847
commit
22a81e42e0
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ class UploadTrackCommand extends CommandBase
|
||||||
$track->save();
|
$track->save();
|
||||||
$track->ensureDirectoryExists();
|
$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')) {
|
if (!is_dir(Config::get('ponyfm.files_directory') . '/queued-tracks')) {
|
||||||
mkdir(Config::get('ponyfm.files_directory') . '/queued-tracks', 0755, true);
|
mkdir(Config::get('ponyfm.files_directory') . '/queued-tracks', 0755, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue