FileMonitor deprecated



  • On 28/04/2018 at 23:01, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R19 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    The documentation mentions (in its manual) that the FileMonitor is deprecated and will be replaced in a future release.
    So, what should we use in the meantime?

    Still rely on this FileMonitor class, and re-implement the whole when the new replacement is available, or ignore this FileMonitor and use some other mechanism? (which one?)

    I am looking into using presets (files) stored in a folder, and would want to know when user adds/removes/renames/updates preset, in order to update the list of presets in combobox or similar.

    I could keep a cache, with filenames, timestamps, etc ... and check if things have changed. That would be fine when using the preset to check for changes and sync when needed, but this way I will not get triggered when something has changed before actually using the preset.



  • On 30/04/2018 at 04:45, xxxxxxxx wrote:

    Hi C4DS,

    I will ask you a little bit of patience, due to off-day you will probably get an answer only Wednesday.

    Maxime



  • On 03/05/2018 at 02:13, xxxxxxxx wrote:

    Hi,

    sorry, Wednesday was one of those lost days...

    While FileMonitor is deprecated, it is still valid and the only option we currently provide. The deprecation note is only there to make developers aware of upcoming changes, so they can prepare to rework such code pieces. Unfortunately I still can not say,l when the replacement will arrive...


Log in to reply