fileUtils: correctly determine file type for symbolic links
Extensions in a folder that is a symbolic link do not get loaded, since the returned file type is unknown. https://bugzilla.gnome.org/show_bug.cgi?id=689868
This commit is contained in:
parent
fc9a96ac85
commit
16c0585b95
@ -7,7 +7,7 @@ const Params = imports.misc.params;
|
||||
|
||||
function listDirAsync(file, callback) {
|
||||
let allFiles = [];
|
||||
file.enumerate_children_async(Gio.FILE_ATTRIBUTE_STANDARD_NAME,
|
||||
file.enumerate_children_async('standard::name,standard::type',
|
||||
Gio.FileQueryInfoFlags.NONE,
|
||||
GLib.PRIORITY_LOW, null, function (obj, res) {
|
||||
let enumerator = obj.enumerate_children_finish(res);
|
||||
@ -33,7 +33,7 @@ function _collectFromDirectoryAsync(dir, loadState) {
|
||||
loadState.loadedCallback(loadState.data);
|
||||
}
|
||||
|
||||
dir.query_info_async('standard:type', Gio.FileQueryInfoFlags.NONE,
|
||||
dir.query_info_async('standard::type', Gio.FileQueryInfoFlags.NONE,
|
||||
GLib.PRIORITY_DEFAULT, null, function(object, res) {
|
||||
try {
|
||||
object.query_info_finish(res);
|
||||
|
Loading…
Reference in New Issue
Block a user