cute-js QDir entryInfoList broken [1.1.0.39]

asked 2014-11-09 21:21:43 +0200

leszek gravatar image

updated 2014-11-09 21:22:30 +0200

cute-js QDir entryInfoList seems to be broken as it does not give anything back anymore.

Example code:

var os = require('os');
var Q = require('qt-core');
var dirObj =  os.qt.dir;
var curDir;
var curList = [];
var filters = Q.Dir.AllEntries | Q.Dir.NoDot | Q.Dir.NoDotDot;

var dirName, begin, end, len, i;

dirName = "/home/nemo/";
curDir = dirObj(dirName);
curList = curDir.entryInfoList(["*"], filters, Q.Dir.DirsFirst);  // this always ends up with an empty curList

Maybe I did a mistake anywhere in adapting to the api change in cutes but I can't get it to work anymore for the filemanager component in LLs Video Player.

edit retag flag offensive close delete