projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e6af93
)
Monitor.vala
author
Alan Knowles
<alan@akbkhome.com>
Thu, 1 May 2014 14:28:39 +0000
(22:28 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 1 May 2014 14:28:39 +0000
(22:28 +0800)
Monitor.vala
patch
|
blob
|
history
diff --git
a/Monitor.vala
b/Monitor.vala
index
5deff66
..
9d2d8e2
100644
(file)
--- a/
Monitor.vala
+++ b/
Monitor.vala
@@
-176,8
+176,15
@@
public class Monitor : Object
FileInfo next_file;
- while ((next_file = file_enum.next_file(null)) != null) {
-
+ while (true) {
+ try {
+ next_file = file_enum.next_file(null))
+ } catch (Error e) {
+ break;
+ }
+ if (next_file == null) {
+ break;
+ }
//print("got a file " + next_file.sudo () + '?=' + Gio.FileType.DIRECTORY);
if (next_file.get_file_type() != FileType.DIRECTORY) {