diff --git a/lib/ProfileServer.php b/lib/ProfileServer.php index cc72345..1962551 100644 --- a/lib/ProfileServer.php +++ b/lib/ProfileServer.php @@ -12,10 +12,15 @@ public static function getFileSystem() { $profileId = self::getProfileId(); + if (is_dir(PROFILEBASE . "$profileId/")) { // backwards compatiblity check + $profilePath = $profileId; + } else { + $profilePath = implode("/", str_split($storageId, 4)); + } // The internal adapter $adapter = new \League\Flysystem\Adapter\Local( // Determine root directory - PROFILEBASE . "$profileId/" + $profilePath ); $graph = new \EasyRdf\Graph(); diff --git a/upgrade/0.4.2/upgrade.php b/upgrade/0.4.2/upgrade.php new file mode 100644 index 0000000..55f3c7f --- /dev/null +++ b/upgrade/0.4.2/upgrade.php @@ -0,0 +1,48 @@ + $destination\n\n"; + } else { + echo "Failed: $dir\n"; + } + } +} \ No newline at end of file