listening to the creation/deletion of a file with specific name.
Hi,
I’m wondering if it is possible somehow to listen to the creation/deletion of a file with an specific name. I know in Windows one has the option of controling .NET events, but I need a similar functionality also in Linux and Mac… I know I can create timers that scan continuously the file system, but this solution is rather inelegant and seems to compromise the performance of my code, so I’m interested in a solution more oriented to actual listeners… Any ideas?
Thanks in advance,
DanielHi,
I’m wondering if it is possible somehow to listen to the creation/deletion of a file with an specific name. I know in Windows one has the option of controling .NET events, but I need a similar functionality also in Linux and Mac… I know I can create timers that scan continuously the file system, but this solution is rather inelegant and seems to compromise the performance of my code, so I’m interested in a solution more oriented to actual listeners… Any ideas?
Thanks in advance,
Daniel Hi,
I’m wondering if it is possible somehow to listen to the creation/deletion of a file with an specific name. I know in Windows one has the option of controling .NET events, but I need a similar functionality also in Linux and Mac… I know I can create timers that scan continuously the file system, but this solution is rather inelegant and seems to compromise the performance of my code, so I’m interested in a solution more oriented to actual listeners… Any ideas?
Thanks in advance,
Daniel listener, file system, system.io.filesystemwatcher, linux, files MATLAB Answers — New Questions