Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Matt Broadstone
    @mbroadst
    I'm reverting to the isPidFile approach for now, but just wanted to provide the bug report
    Elan Shanker
    @es128
    appreciate it…. It does seem like /var/run may be some sort of special case
    I don’t yet understand how or why
    Matt Broadstone
    @mbroadst
    yeah seems to be the case
    I just switched path to my home dir and it works fine
    Matt Broadstone
    @mbroadst
    would you prefer I open a new issue for that particular case?
    Elan Shanker
    @es128
    no, will just leave a note in the existing one
    Alex Chumbley
    @chums923
    Hi, I was wondering if I missed something in the docs and maybe there was a way of watching for a file rename - besides capturing a file addition and deletion
    From what I can tell, there isn't an event that says something like "File 'A' was renamed to file 'B'"
    Elan Shanker
    @es128
    Correct, there is no such event exposed by chokidar because it cannot be provided consistently
    more discussion of that at paulmillr/chokidar#303
    Ricardo A. Rubio
    @rickarubio
    Hi, just curious, is there a way to do the opposite of path filtering - ignored?
    ie: I would like to watch a directory and only watch for *.log files
    and filter out anything that doesn't match *.log
    if this does not exist, is it a feature you would like implemented in chokidar ?
    Ricardo A. Rubio
    @rickarubio
    @mbroadst ah, just found out I can pass a glob to the first argument of watcher, nevermind the above :)
    E-Hern Lee
    @somebody1234
    @/all How would I specify directories/files to ignore? (i.e. how do the regexes need to be modified for only directories/only files?)
    Elan Shanker
    @es128
    @somebody1234 did my answer in paulmillr/chokidar#492 suffice? Or are you still in need of help?
    hellboy81
    @hellboy81
    Hi
    .on('add', function(file) { console.log('added: ' + file); })
    why this event fired always an beginning?
    Even this files are exists
    On windows 7 64 bit platform / Node.js 0.12 /4.x/5.x
    @es128
    If file has been changed (i.e. saved in external editor) - `.on('change' event is fired
    hellboy81
    @hellboy81
    paulmillr/chokidar#521
    Jonathan Lake
    @jwtlake
    Are there any good solutions for ignoring hidden files on windows? We are using {ignored: /[\/\\]\./} to ignore dot files on linux but I'm not quite sure what should be done for windows.
    Elan Shanker
    @es128
    I’m not sure how you determine whether a windows file is hidden or not to begin with within node, but if you can do that you could set ignored to a function that returns true on hidden files (and any other files you wish to ignore)
    @shmulim
    @shmulim
    I'm trying to watch a server directory and fire off a trigger when uploading finishes. How would I go about with something like that?
    Ah, I see an interesting solution here: paulmillr/chokidar#215
    Arye Shalev
    @pantchox
    hello, where is the chokidar documentation? i mean for all events and specific what each event receive, i could not find it, thanks!
    Arye Shalev
    @pantchox
    for example the "addDir" event receive path and an object, the object has many proprties how am i suppose to know what each means? i could not find any documentation on this
    HadiChan
    @HadiChen
    How to do only monitor a directory, subdirectories do not listen to it
    How to do only monitor a directory, subdirectories do not monitor it?
    Because I just need to determine whether the current directory of new documents, do not need to tube catalog, how do I operate
    Ash
    @ashthespy
    @HadiChen Check out the option depth
    Ash
    @ashthespy
    have some questions if my implementation of chokidar is correct for our use case.
    I'd like to monitor a folder (and sub folders recursively) only for certain file types.
    so with globs, I have
    chokidar.watch('C:\User\Documents\Template' + '/**/*.+(png|esp|jpeg|jpg|pdf)')
    Some questions
    1. This should automatically ignore all other file types correct? Or is it best practice to include a list of common ignored files as well?
    2. When looking at the watched paths via GetWatched() - is it common to also see the gllob match?
      I.e I have an entry with:
      C:\User\Documents\Template\**\*.+(png|eps|jpeg|jpg|pdf|): Array[0]
    Steffan Long
    @SteffanLong

    @ashthespy I just heard of this module today, so don't take my advice as worth anything... but wouldn't it be better to do something like:

    chokidar.watch('C:\User\Documents\Template', {
      ignored: /^.*\.(?!png$|esp$|jpeg$|jpg$|pdf$)[^.]+$/,
      depth: 99
    });

    This will ignore any files that don't end in the extensions you specified, and provide recursion up to 99 levels deep (but you could go deeper) from your initial directory.

    Chris Rutherford
    @cjrutherford
    hey guys, I know you're working hard on this, but just curious when you're expecting chokidar to be working on windows again? or what version of it was last working? I'd happily roll back
    Travis LaDuke
    @laduke
    I must be tired. How can I use chokidar ( .on('change') ) as an input stream to like pumpify and through2
    Travis LaDuke
    @laduke
    This message was deleted
    Travis LaDuke
    @laduke
    basically
    function watcher (chokidar, event) {
      var next
    
      chokidar.on(event, function (path) {
        next(null, path)
      })
    
      return miss.from.obj(function (size, next_) {
        next = next_
      })
    }
    Zakaria LAABID
    @zackfalcon
    Hi is there someone .?
    Chris Rutherford
    @cjrutherford
    @zackfalcon better to go ahead and ask, and others will chime in if they have an answer. What's the question?
    bm-stschneider
    @bm-stschneider
    hello, I have a weird issue with chokidar cli
    after some time when chokidar watches files and runs some grunt tasks the alignment gets awry
    image.png
    to
    image.png
    any idea why this is happening?
    Ford
    @fordN
    is there a built in way to display error messages but not end the watch loop? so one doesn't have to start process again after a failure, watcher will keep rurunning on changes and displaying out the error messages