30
30
public bool is_video (string path)
32
33
var file = GLib.File.new_for_path (path);
33
34
if (file.query_exists (null))
35
36
if (file.query_file_type (GLib.FileQueryInfoFlags.NONE, null) == GLib.FileType.REGULAR)
37
38
var content_type = file.query_info ("standard::content-type", GLib.FileQueryInfoFlags.NONE, null).get_content_type ();
38
40
return content_type.contains ("video");