bertlea wrote: ↑Wed Jul 11, 2018 3:25 amusing bash?
https://superuser.com/questions/352289/ ... -directory
https://thispointer.com/python-how-to-c ... -is-empty/
using other programming language? Can try google your programming language name and keywords: 'check if folder is empty'.
tpyo kingg wrote: ↑Wed Jul 11, 2018 4:17 amIf it's not a high-volume activity, then incron could be used to monitor the directory and trigger a script when a filename appears or is deleted.
That script could be a shell script (avoid bashisms when possible to promote portability) or a python or perl script.
Users browsing this forum: No registered users and 48 guests