We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2014-11-09 21:21:43 +0200 |
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.
2 | No.2 Revision |
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.
3 | No.3 Revision |
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.