We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff1d004 commit 2edba71Copy full SHA for 2edba71
lib/StorageServer.php
@@ -84,10 +84,16 @@ public static function getFileSystem() {
84
if (!self::storageIdExists($storageId)) {
85
throw new \Exception("Storage does not exist");
86
}
87
+ if (is_dir(STORAGEBASE . "$storageId/")) { // backwards compatiblity check
88
+ $storagePath = $storageId;
89
+ } else {
90
+ $storagePath = implode("/", str_split($storageId, 4));
91
+ }
92
+
93
// The internal adapter
94
$adapter = new \League\Flysystem\Adapter\Local(
95
// Determine root directory
- STORAGEBASE . "$storageId/"
96
+ STORAGEBASE . "$storagePath/"
97
);
98
99
$graph = new \EasyRdf\Graph();
0 commit comments