Re: [expath] Re: Finalizing the File Module

Mike's naming proposal seems a good idea to me. But no matter how the function is named - I find it very useful, very desirable to have. I personally ALWAYS use file:list in order to subsequently access the documents, it is always a little strain to reconstruct the path, because URIs are so touchy. So by all means, let's have this function.

Hans-Jürgen


Mike Sokolov <sokolov@falutin.net> schrieb am 14:22 Dienstag, 15.April 2014:
 
It might be helpful to relate the existing file:list to the new 
function, though.  Since the only difference (I think) is that one 
offers full paths while the other returns filenames, how about 
file:list-paths()?

-Mike


On 04/15/2014 08:05 AM, Alexander Holupirek wrote:
> On 15.04.2014, at 13:22, Christian Grün <christian.gruen@gmail.com> wrote:
>
>>> 1) I find odd to name anything children in a tree environnement like XML
>> Personally, I find it particularly well suited to talk about children
>> in a hierarchical file system environment. What do you exactly regard
>> as confusing here? What do you think about the existing file:parent()
>> function, which we see as the counterpart for this new function?
> I agree with Christian and think it's quite common terminology when dealing with file hierarchies.
>
> See for instance the fts(3) functions on Unix systems which are provided for traversing file hierarchies:
> http://man7.org/linux/man-pages/man3/fts.3.html
>
> In addition there are useful components, such as
>
> fts_accpath A path for accessing the file from the current directory.
> fts_path    The path for the file relative to the root of the traversal.
> fts_parent  A pointer ... referencing the file in the hierarchy immediately above the current file ...
> ...
>
> which could be taken as an established reference when designing a file module.
>
> All the best
>     Alex
>

-- 
You received this message because you are subscribed to the Google Groups "EXPath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to expath+unsubscribe@googlegroups.com.
To post to this group, send email to expath@googlegroups.com.
Visit this group at http://groups.google.com/group/expath.
For more options, visit https://groups.google.com/d/optout.

Received on Tuesday, 15 April 2014 21:55:18 UTC