Enumerate local directories only

This commit is contained in:
Rafał Dzięgiel
2021-04-20 19:31:24 +02:00
parent 2e892c923b
commit 231af36ef6

View File

@@ -65,6 +65,12 @@ class ClapperAppBase extends Gtk.Application
const urisArr = [];
for(let file of files) {
const uri = file.get_uri();
if(!uri.startsWith('file:')) {
urisArr.push(uri);
continue;
}
/* If file is not a dir its URI will be returned in an array */
const uris = await FileOps.getDirFilesUrisPromise(file).catch(debug);
if(uris && uris.length)