Re: [code] [textadept] lfs.dir_foreach and symlinks

From: Chris Emerson <c-ta.att.mail.nosreme.org>
Date: Mon, 13 Apr 2015 21:51:17 +0100

Hi Mitchell,

On Mon, Apr 13, 2015 at 03:56:28PM -0400, Mitchell wrote:
> I've committed a change[1] that allows you to set a `symlink` flag
> for files and folders to filter out. The function called by
> `lfs.dir_foreach()` wasn't designed to do the job of a filter.
>
> lfs.dir_foreach('/path', function(file)
> ...
> end, {folders = {symlink = true}})
>
> should do what you're looking for -- filtering out symlinked directories.

Thanks! I'll check it out.

Regards,

Chris

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 13 Apr 2015 - 16:51:17 EDT

This archive was generated by hypermail 2.2.0 : Tue 14 Apr 2015 - 06:33:32 EDT