From 99a8ed23df40db8dd6fe519bc51e3db928982020 Mon Sep 17 00:00:00 2001 From: Frederic Back Date: Sun, 24 Sep 2006 10:21:23 +0000 Subject: * Corrected the tuple order git-svn-id: file:///home/lennart/svn/public/fring/trunk@19 d0d2c35f-0a1e-0410-abeb-dabff30a67ee --- src/extension/fringtools.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extension/fringtools.cpp b/src/extension/fringtools.cpp index 577a486..93643be 100644 --- a/src/extension/fringtools.cpp +++ b/src/extension/fringtools.cpp @@ -48,10 +48,11 @@ PyObject* build_tree( std::string path, const bool& skipHidden) { if(S_ISDIR(s.st_mode)) { PyObject* sub = build_tree(fn,skipHidden); + PyTuple_SetItem(sub,0,PyString_FromString(e->d_name)); PyList_Append(l, sub ); total += PyInt_AsLong( PyTuple_GET_ITEM(sub,2) ); } else if (S_ISREG(s.st_mode)) { - PyList_Append(l, Py_BuildValue("(sOi)",fn.c_str(),Py_None,s.st_size) ); + PyList_Append(l, Py_BuildValue("(sOi)",e->d_name,Py_None,s.st_size) ); total += s.st_size; } -- cgit