I am trying to list the files with a specific extension (i.e. *.gpx), so I thought I would do
window.tizen.filesystem.resolve('documents', function (fs) {
fs.listFiles(function (files) {
for (var i in files) { console.log(files[i].fullPath); }; },
null, { name: '%.gpx' });
});
However, that doesn’t return any results (and, of course, there are some gpx files there); using a slightly different filter seems to work as expected:
window.tizen.filesystem.resolve('documents', function (fs) {
fs.listFiles(function (files) {
for (var i in files) { console.log(files[i].fullPath); }; },
null, { name: 'A%.gpx' });
});
But that doesn’t really do what I want… How can I get all files with a specific extension?
File.listFiles filtering on file extension
I am trying to list the files with a specific extension (i.e. *.gpx), so I thought I would do
However, that doesn’t return any results (and, of course, there are some gpx files there); using a slightly different filter seems to work as expected:
But that doesn’t really do what I want… How can I get all files with a specific extension?
BTW, I am using the mobile 3.0 emulator…
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio