[of-dev] ofDirectoryLister

arturo castro arturo at openframeworks.cc
Wed Apr 13 11:43:37 PDT 2011


yes, i was going to ask you about that but then totally forgot. do we
need the absolute path parameter at all?  ofToDataPath is smart enough
now to detect if a path is absolute or not.

El mié, 13-04-2011 a las 21:41 +0300, Kyle McDonald escribió: 
> just noticed another regression. this line inside listDir() shouldn't
> be commented out:
> 
> directory = ofFilePath::getPathForDirectory(directory);
> 
> it is responsible for fixing missing trailing slashes.
> 
> the other lines that have been commented out are important too. they
> ensure that the paths you get from getPath() are correct regardless of
> whether you're using absolute or relative paths.
> 
> i can fix it, but arturo it looks like you're still working on it? (i
> see a debug cout just hanging around)
> 
> sorry if i didn't leave enough comments in the code to make this part obvious :)
> 
> kyle
> 
> On Wed, Apr 13, 2011 at 5:31 PM, Kyle McDonald <kyle at kylemcdonald.net> wrote:
> > wow, just ran into this problem and read arturo's message more carefully.
> >
> > this is great. ofxDirList is now really integrated into OF, not just
> > as a weird appendage sitting in the core...
> >
> > this does cause at least one issue with an easy fix:
> >
> > https://github.com/openframeworks/openFrameworks/issues/537
> >
> > also, i don't know if everyone realizes how awesome this is. read
> > arturo's code snippet again. i'm so happy i don't have to try
> > explaining what ios_base::out means anymore.
> >
> > kyle
> >
> > On Mon, Apr 11, 2011 at 10:47 PM, arturo castro
> > <arturo at openframeworks.cc> wrote:
> >>
> >>>
> >>>
> >>> it's integrated into ofDir now. we've split ofFileUtils into ofFile +
> >>> ofDir and merged ofDirectoryLister with ofDir :S
> >>
> >> sorry ofDirectory
> >>
> >> _______________________________________________
> >> of-dev mailing list
> >> of-dev at dev.openframeworks.cc
> >> http://dev.openframeworks.cc/listinfo.cgi/of-dev-openframeworks.cc
> >>
> >





More information about the of-dev mailing list