add followLinks option
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef lint
|
||||
static char rcsid[] = "@(#$Id: fstreewalk.cpp,v 1.13 2007-08-28 08:08:38 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||
static char rcsid[] = "@(#$Id: fstreewalk.cpp,v 1.14 2007-08-30 09:01:52 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||
#endif
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -65,6 +65,13 @@ FsTreeWalker::~FsTreeWalker()
|
||||
delete data;
|
||||
}
|
||||
|
||||
void FsTreeWalker::setOpts(Options opts)
|
||||
{
|
||||
if (data) {
|
||||
data->options = opts;
|
||||
}
|
||||
}
|
||||
|
||||
string FsTreeWalker::getReason()
|
||||
{
|
||||
return data->reason.str();
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
#ifndef _FSTREEWALK_H_INCLUDED_
|
||||
#define _FSTREEWALK_H_INCLUDED_
|
||||
/* @(#$Id: fstreewalk.h,v 1.8 2007-08-28 08:08:39 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||
/* @(#$Id: fstreewalk.h,v 1.9 2007-08-30 09:01:52 dockes Exp $ (C) 2004 J.F.Dockes */
|
||||
|
||||
#include <string>
|
||||
#include <list>
|
||||
@@ -46,6 +46,9 @@ class FsTreeWalker {
|
||||
|
||||
FsTreeWalker(Options opts = FtwOptNone);
|
||||
~FsTreeWalker();
|
||||
|
||||
void setOpts(Options opts);
|
||||
|
||||
/**
|
||||
* Begin file system walk.
|
||||
* @param dir is not checked against the ignored patterns (this is
|
||||
|
||||
Reference in New Issue
Block a user