Trailing slash in path of LL object causes unintended beavior #70

Closed
opened 2026-07-31 12:27:18 +00:00 by scossu · 1 comment
Owner

If a slash is appended at the end of a path (supposedly a container / folder type), trees created from that path behave incorrectly:

  1. They create a double hierarchy, once inside the parent, once at the same parent level.
  2. If the path with the trailing slash is inside a parent, it is not included in the parent's tree.

Normalizing the paths by removing all trailing slashes removes the problem, and is the best option. Some Unix tools give special meaning to trailing slashes: that's good for sysadmins, but confusing for catalogers.

If a slash is appended at the end of a path (supposedly a container / folder type), trees created from that path behave incorrectly: 1. They create a double hierarchy, once inside the parent, once at the same parent level. 2. If the path with the trailing slash is inside a parent, it is not included in the parent's tree. Normalizing the paths by removing all trailing slashes removes the problem, and is the best option. Some Unix tools give special meaning to trailing slashes: that's good for sysadmins, but confusing for catalogers.
scossu added this to the v1.0.0 milestone 2026-07-31 12:27:18 +00:00
Author
Owner

This was supposed to be already addressed, but in the wrong place...

This was supposed to be already addressed, but in the wrong place...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ktx/pocket_archive#70
No description provided.