-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tiled CLI register needs container to exist to register objects with a prefix #834
Comments
Here is the error that I get. It looks like Interestingly
|
The following diff fixes this immediate problem, but returns me back to the original problem of the container not existing. --- a/tiled/client/register.py
+++ b/tiled/client/register.py
@@ -163,7 +163,7 @@ async def register(
for segment in prefix_parts:
child_node = await anyio.to_thread.run_sync(node.get, segment)
if child_node is None:
- key = key_from_filename(segment)
+ key = settings.key_from_filename(segment)
await create_node_or_drop_collision(
node,
structure_family=StructureFamily.container, Now the problem is container does not exist:
Server Side logs associated:
|
Use case:
Have a datasets organized by subdirectories in
/storage/
. Each dataset is a subdir ie/storage/dataset1
. I would like to register sub-directories individually like (as new datasets arrive):tiled register http://127.0.0.1:8000/ /storage/dataset1/ --prefix=/dataset1
This fails because the Container
/dataset1
does not exist.There is no current way to create the container via the CLI (currently have to use
create_container
in python API)From discussion with @dylanmcreynolds
The text was updated successfully, but these errors were encountered: