Utils: Enumerate children with standard attributes
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ function getInstalledResources(type) {
|
|||||||
const resourcesDir = Gio.File.new_for_path(resourcesDirPath);
|
const resourcesDir = Gio.File.new_for_path(resourcesDirPath);
|
||||||
if (resourcesDir.query_file_type(Gio.FileQueryInfoFlags.NONE, null) !== Gio.FileType.DIRECTORY)
|
if (resourcesDir.query_file_type(Gio.FileQueryInfoFlags.NONE, null) !== Gio.FileType.DIRECTORY)
|
||||||
return;
|
return;
|
||||||
const resourcesDirsEnumerator = resourcesDir.enumerate_children('', Gio.FileQueryInfoFlags.NONE, null);
|
const resourcesDirsEnumerator = resourcesDir.enumerate_children('standard::', Gio.FileQueryInfoFlags.NONE, null);
|
||||||
while (true) {
|
while (true) {
|
||||||
let resourceDirInfo = resourcesDirsEnumerator.next_file(null);
|
let resourceDirInfo = resourcesDirsEnumerator.next_file(null);
|
||||||
if (resourceDirInfo === null)
|
if (resourceDirInfo === null)
|
||||||
|
|||||||
Reference in New Issue
Block a user