Android: FileObserver monitors only top directory

前端 未结 2 993
误落风尘
误落风尘 2020-12-01 10:00

According to the documentation,

\"Each FileObserver instance monitors a single file or directory. If a directory is monitored, 
events will be triggered for         


        
2条回答
  •  时光取名叫无心
    2020-12-01 10:29

    According to the documentation

    The documentation is incorrect, as is noted in this issue.

    Is there any problem with the code?

    No, but FileObserver is not recursive, despite the documentation to the contrary.

提交回复
热议问题