We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

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

cute-js QDir entryInfoList broken [1.1.0.39]

cute-js QDir entryInfoList seems to be broken as it does not give a 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.

cute-js QDir entryInfoList broken [1.1.0.39]

cute-js QDir entryInfoList seems to be broken as it does not give a 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.

cute-js QDir entryInfoList broken [1.1.0.39]

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.