sintonia/legacy/application/common/Storage.php
jo f7bb6e7592 feat: move storage path setting to configuration file
- change default storage path to /srv/libretime
- remove music dirs table
- use /tmp for testing storage
- storage dir should always have a trailing slash
2022-06-08 23:23:08 +02:00

15 lines
330 B
PHP

<?php
class Application_Common_Storage
{
public static function splitFilePath($p_filepath)
{
$storage_path = Config::getStoragePath();
if (strpos($p_filepath, $storage_path) !== 0) {
return null;
}
return [$storage_path, substr($p_filepath, strlen($storage_path))];
}
}