How to monitor file change on iOS platform? -


I think there are some libraries for monitoring file changes on the Mac, for example: but I want to monitor Failed to find a library file change on iOS platform.

Can anyone tell me how to monitor file changes in the objc wrapper?

Thank you

File monitoring on iOS GCD monitor any file or folder you want When you create a dispatch source, you provide three interesting things:

  1. A file descriptor that points to a file or folder
  2. What kinds of incidents do you want to describe the flag
  3. To send notifications of these events (main queue, a background line, etc) to

    After creating a sending source, you then set the block of code to be executed when an event occurs or when the source is canceled (deleted). When you set the block set for an event, you can determine which event has happened (if you are registered for more than one type), and if ... and ... Then or switch ... case statement. / P>

    I am in the process of creating a portable purpose-class which will make the process easier, but in the mean time, you should take a look at one. It shows that I have described what I have described to fix it.

    Edit:

    is now available through cocaapodes. To install it, just add the following line to your podfile:

      Pod 'iMonitorMyFiles',' ~ & gt; 0.1.0 '   

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -