Re: walk_dir() and full path

new topic     » goto parent     » topic index » view thread      » older message » newer message

> Is there a way to retrieve the full path for a file name supplied by
> walk_dir()?

Your function provides 2 parameters: 'path' and 'entry'. 'path' is the
current path, 'entry' is a dir entry (ths I'm sure you already know,
just establishing the facts). Take the D_NAME part of entry and append
it to path, you should have the full path.

function your_func( sequence path, sequence entry )

    sequence full_path

    full_path = path &'\\' & entry[D_NAME]

    return 0  -- keep going
end function


~Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu