parent: ancestor: and partial paths
-
jimspoon
- Posts: 213
- Joined: Tue Apr 26, 2011 11:39 pm
parent: ancestor: and partial paths
It seems that full paths must be specified with the parent: and ancestor: functions. If a partial path could be specified, really any string in the parent or ancestor pathname, it would save a lot of typing, plus you wouldn't have to know the whole pathname. Of course the results would contain the child and descendant items of different parents/ancestors, but that could be handled by sorting the results list by path.
-
therube
- Posts: 5727
- Joined: Thu Sep 03, 2009 6:48 pm
Re: parent: ancestor: and partial paths
parent: shows only, limits the search to the specified (full path) directory (contents, no subdirectories, no files in any subdirectories [is that a descendant ?), is that correct?
(I have no idea what ancestor: does. Anyhow.)
If you then end up with results that throw children... into the picture, then how is that different from simply specifying parts of a path as (a start of) your search (that you then refine further)?
(I have no idea what ancestor: does. Anyhow.)
If you then end up with results that throw children... into the picture, then how is that different from simply specifying parts of a path as (a start of) your search (that you then refine further)?
-
void
- Developer
- Posts: 19899
- Joined: Fri Oct 16, 2009 11:31 pm
-
jimspoon
- Posts: 213
- Joined: Tue Apr 26, 2011 11:39 pm
Re: parent: ancestor: and partial paths
Thanks so much! You are way ahead of me as always.void wrote: Tue Oct 01, 2024 10:29 pm Please try the parent-path:, parent-name: or ancestor-name: search functions.
-
jimspoon
- Posts: 213
- Joined: Tue Apr 26, 2011 11:39 pm
Re: parent: ancestor: and partial paths
I think Parent: shows the files and first-level directories in that specified directory. You'd have to add file: or folder: to limit the list accordingly.therube wrote: Tue Oct 01, 2024 9:01 pm parent: shows only, limits the search to the specified (full path) directory (contents, no subdirectories, no files in any subdirectories [is that a descendant ?), is that correct?
I think Ancestor: lists all the files and directories in and under the specified directory.(I have no idea what ancestor: does. Anyhow.)
Good question! I need to think through it through better.If you then end up with results that throw children... into the picture, then how is that different from simply specifying parts of a path as (a start of) your search (that you then refine further)?