[zeromq-dev] zdir loads whole heirarchy?

Tom Quarendon tom.quarendon at teamwpc.co.uk
Thu Sep 11 16:32:52 CEST 2014


Wow, err, OK.
I was just checking that I was understanding this right in the first instance. I'm not sure I'd got as far as working out what the "parent" was for yet. 
Your patch has the effect of meaning that you can only do the "non recursive" behaviour on an absolute path, whereas the "parent" parameter means that the constructor first joins the two paths together? I'm not judging, I'm just trying to check I'm reading the behaviour right. I can do the path concatenation manually first if I need to, albeit slightly less efficiently as it will involve another memory allocation, and actually slightly less cleanly as I then have to free that memory manually as well. I normally work in C++ where those two actions would be separated (the directory constructor and the path concatenation), so I don't know what's normal in C.

Thanks anyway. I will take a look. 

-----Original Message-----
From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of Pieter Hintjens
Sent: 11 September 2014 15:17
To: ZeroMQ development list
Subject: Re: [zeromq-dev] zdir loads whole heirarchy?

OK, I've made a patch that allows this.  See
https://github.com/zeromq/czmq/pull/650

On Thu, Sep 11, 2014 at 3:53 PM, Tom Quarendon <tom.quarendon at teamwpc.co.uk> wrote:
> The zdir constructor loads the *whole* directory hierarchy into 
> memory. Am I reading that right?
>
> So I don’t appear to be able to (efficiently) do a simple directory 
> listing using zdir, to list, for example, the contents of “/”?
>
>
>
> Thanks.
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


More information about the zeromq-dev mailing list