Location vs Location Group

I am confused with location with location group. When I tried to create location, I understand a group/record is created.

set theGroup to create location "/TestGroup/" in database "Test"

Base on the dictionary, I thought with location, I will be able to get the POSIX path of the group/record, ie /TestGroup/

But, instead, I am getting “/” as location and “test” (lowercase) as location group. path is also not getting the POSIX path.

So, what is a location and what is a location group? How can I get the POSIX path of the group/record?



A group is a logical concept, not a folder . It has no physical path.

Why do you think you need that path?

The location of this group is indeed /, it’s located at the root of the database.

2 Likes

So, for any operation with the group you need just UUID of this group. Only indexed group may have a real path in filesystem.

I can understand that this group is located at /, the root of the database. What is location group? location group is “test”, the database?

Yes, the location group is the root of the database in this case.

Hmm…so the root of the database is test, the database itself?

Not really. The database itself is a database. The root of it is a record.

If the group is deep in the hierarchy (like, /TestGroup/SubGroup/Sub-SubGroup), it will be easier to figure out where it is if I need to traverse the path/hierarchy.

No. But the root’s name is the one of the database.