File System Listener

前端 未结 2 1857
孤独总比滥情好
孤独总比滥情好 2021-02-09 12:15

I would like to know if it is possible to have a listener in my application for notifying events when a file is added to the file system. Can someone kindly guide me with this.<

2条回答
  •  隐瞒了意图╮
    2021-02-09 12:47

    You should use a FileObserver to monitor for changes to files or directories.

    There seems to be an example here, but I've not tried it so can't vouch for it's correctness.

提交回复
热议问题