mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Enumerate local directories only
This commit is contained in:
@@ -65,6 +65,12 @@ class ClapperAppBase extends Gtk.Application
|
|||||||
const urisArr = [];
|
const urisArr = [];
|
||||||
|
|
||||||
for(let file of files) {
|
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 */
|
/* If file is not a dir its URI will be returned in an array */
|
||||||
const uris = await FileOps.getDirFilesUrisPromise(file).catch(debug);
|
const uris = await FileOps.getDirFilesUrisPromise(file).catch(debug);
|
||||||
if(uris && uris.length)
|
if(uris && uris.length)
|
||||||
|
Reference in New Issue
Block a user