How to get file name when file change is observed via watch_file
<p>I am currently facing an issue which I don't know how to fix. I got the following Julia code:</p>

<pre><code>while true
    print(watch_file("test"))
end
</code></pre>

<p>So this should get me all the file changes in the directory named "test". At least on windows.</p>

<p>Now thats all well and good, and it kinda works, at least for creating a file or moving a file to that directory. This is an example of what I get:</p>

<pre><code>("New Textfile.txt",Base.FileEvent(true,false,false))
</code></pre>

<p>But when I delete or rename that file, I don't get the filename of the file deleted or renamed.</p>

<pre><code>("",Base.FileEvent(true,false,false))
</code></pre>

<p>Is there a different method/function I can get the filename with, even when the file is deleted or renamed? Or even better, a way that archives this and is cross-platform-compatible? Any help appreciated.</p>

<p><strong>EDIT:</strong> If you could give me an alternative that supports recursive monitoring, that would be even better.</p>