<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python GUIs - filesystem</title><link>https://www.pythonguis.com/</link><description>Create GUI applications with Python and Qt</description><atom:link href="https://www.pythonguis.com/feeds/filesystem.tag.rss.xml" rel="self"/><lastBuildDate>Fri, 14 May 2021 09:00:00 +0000</lastBuildDate><item><title>Fixing inotify_add_watch errors when deleting files with QFileSystemModel — Why Qt's file watcher complains about deleted directories and how to handle it</title><link>https://www.pythonguis.com/faq/inotify-add-watch-error-when-deleting-in-qt-but-not-command-line/</link><description>I have a GUI with a tree view file explorer using &lt;code&gt;QFileSystemModel&lt;/code&gt;. When I delete a project directory, I get &lt;code&gt;inotify_add_watch&lt;/code&gt; errors like &lt;code&gt;"No such file or directory"&lt;/code&gt;. The same deletion from the command line doesn't produce these errors. What's going on, and how do I fix it?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Fitzpatrick</dc:creator><pubDate>Fri, 14 May 2021 09:00:00 +0000</pubDate><guid>tag:www.pythonguis.com,2021-05-14:/faq/inotify-add-watch-error-when-deleting-in-qt-but-not-command-line/</guid><category>pyqt6</category><category>qfilesystemmodel</category><category>qtreeview</category><category>filesystem</category><category>inotify</category><category>python</category><category>qt</category><category>qt6</category></item></channel></rss>