On Wed, January 16, 2008 18:13, Mourad De Clerck wrote:
> On 16/01/08 04:39, Joey Hess wrote:
>> Only problem is there's no way to tell that foo is supposed to be an
>> empty directory, rather than some other sort of file.
>
> I quickly tried to implement it last night (I never do C, so it's quite
> crufty). But I got stuck with nested directories: trying to create a
> child dir before its parent doesn't work. I think the solutions are
> either to sort the list parents first children later (but the metahash
> is unordered), or to create parents as needed.
>
> What do you think?

I have no problem with the idea in general, but there are a few things
missing:

a) (as you mentioned) Breadth-first traversal
b) uid, gid, xattr, mtimes should also be set (if possible)

Unfortunately I won't have much time to hack until March.

-- 
David Härdeman




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to