Esiur CLI

This commit is contained in:
2026-07-18 00:44:14 +03:00
parent 3e8fb50110
commit ac36a3ddc7
36 changed files with 2396 additions and 304 deletions
+13 -2
View File
@@ -1012,9 +1012,20 @@ public class Warehouse
var parent = await Get<IResource>(string.Join("/", location.Take(location.Length - 1)));
if (parent == null)
throw new Exception("Can't find parent");
{
// Stores may expose hierarchical links without materializing every
// intermediate path segment (for example, database/Type/42).
// In that case the root store still owns the complete relative path.
var root = await Get<IResource>(location[0]);
if (root is not IStore rootStore)
throw new Exception("Can't find parent or root store.");
store = parent.Instance.Store;// GetStore(location[0]);
store = rootStore;
}
else
{
store = parent.Instance.Store;// GetStore(location[0]);
}
//if (store == null)
// throw new Exception("Store not found.");