[Github-comments] [geany/geany-plugins] projectorganizer: Close dir created with g_dir_open() in some special cases (#605)

Jiří Techet notifications at xxxxx
Wed Sep 27 17:00:02 UTC 2017


@kugel- Would you test this patch? I hope it could fix #604 - otherwise I don't know. Do you use some symlinks that could cause that the same path is re-visited many times? Or something that causes that tm_get_real_path() returns NULL for many files? These are the only two cases in which the directory wasn't properly closed (for normal projects I haven't been able to reproduce the issue - no dirs were open).

Note that if you had 1024 nested directories like

```
first/second/third/.../1024-th
```

the current code will still need to open all the intermediate directories for traversal and you'll get the issue during project load. This would be rather hard to fix (or more precisely, the traversal would have to be slow because the intermediate dirs would have to be re-opened closed all the time) but this is a rather crazy case so I'll leave it as it is.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/605#issuecomment-332587745
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170927/3a65ff9f/attachment.html>


More information about the Github-comments mailing list