How do I monitor folder changes? - Mozilla

This is a discussion on How do I monitor folder changes? - Mozilla ; Hi, I need my XulApp to be aware of changes in a given folder and do some predefined tasks when it changes (when a new file appears more specifically). Is there any way to do this? I have searched about ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: How do I monitor folder changes?

  1. How do I monitor folder changes?

    Hi,

    I need my XulApp to be aware of changes in a given folder and do some
    predefined tasks when it changes (when a new file appears more
    specifically). Is there any way to do this? I have searched about and
    has been unable to find such features in any XPCOM.

    Any clues? Or will I have to build my own XPCOM?

    Regards,
    Ronny


  2. Re: How do I monitor folder changes?

    [followup-to mozilla.dev.tech.xpcom set. Also note that
    netscape.public.mozilla.xpcom is not used anymore]

    Spiralis wrote:
    > I need my XulApp to be aware of changes in a given folder and do some
    > predefined tasks when it changes (when a new file appears more
    > specifically). Is there any way to do this? I have searched about and
    > has been unable to find such features in any XPCOM.


    XPCOM does not provide such a feature, indeed... You'd have to write
    your own component.

    (BTW, "an XPCOM" does not make sense. You mean "an XPCOM component" I
    assume. The M stands for Model.)



  3. Re: How do I monitor folder changes?

    Spiralis schrieb:
    > Hi,
    >
    > I need my XulApp to be aware of changes in a given folder and do some
    > predefined tasks when it changes (when a new file appears more
    > specifically). Is there any way to do this? I have searched about and
    > has been unable to find such features in any XPCOM.
    >
    > Any clues? Or will I have to build my own XPCOM?
    >
    > Regards,
    > Ronny
    >


    In windows you could use this function for a start point:

    FindFirstChangeNotification

    just search the msdn or the internet itself for examples.

    kind regards
    Mike

+ Reply to Thread