2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-05-06 03:32:57 +00:00
This commit is contained in:
Ahmed Zamil 2024-11-28 22:32:18 +03:00
commit 2a29e7a21f

View File

@ -375,10 +375,11 @@ public static class Warehouse
public static async AsyncReply<IResource[]> Query(string path) public static async AsyncReply<IResource[]> Query(string path)
{ {
var p = path.Trim().Split('/'); var p = path.Trim().TrimStart('/').Split('/');
IResource resource; IResource resource;
foreach (var store in stores.Keys) foreach (var store in stores.Keys)
{
if (p[0] == store.Instance.Name) if (p[0] == store.Instance.Name)
{ {
@ -407,8 +408,7 @@ public static class Warehouse
return null; return null;
} }
}
return null; return null;
} }