You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to develop a custom archiver service using gulp-watch and 7zip-min. I am lookig for a way to watch recursively a list of paths (to folders or specific files) which could contain hidden files/folders or even dotfiles/dotfolders.
An example is the folder in which I keep all my git repositories : C:/Users/{user-id}/.gitglobal/{project-name}/.git/....
So for this one, I add to my watched list the following globs : 'C:/Users/{user-id}/.gitglobal/**/*', 'C:/Users/{user-id}/.gitglobal/**/.*', 'C:/Users/{user-id}/.gitglobal/**/.**/**/*', 'C:/Users/{user-id}/.gitglobal/**/.**/**/.*'
and the following options for gulp-watch return watch(backupList, { ignoreInitial: false, read: false, dot: true, base: 'c:/' })
But the files deeper than C:/Users/{user-id}/.gitglobal/{project-name}/.git/XXX are never detected by the gulp-watch, like : C:/Users/{user-id}/.gitglobal/Project1/.git/logs/refs/heads and so on..
I really want my service to be as generic as possible, and be able to provide any kind of path to it.
FYI, I tried to output a minimatch result of the file given in example before, and it matches one of my globs. What did I missed ?
Thank you.
The text was updated successfully, but these errors were encountered:
orty
changed the title
Cannpt watch recursively inside dotfolder (.git/**/*)
Cannot watch recursively inside dotfolder (.git/**/*)
Sep 4, 2019
Quick update : as gulp-watch relies on chokidar I just tried to refactor my code using directly chokidar.watch and it worked down to C:\Users\{user-id}\.gitglobal\Project1\.git\logs\HEAD but not deeper.
And I have trouble to make the event callback work asynchronously (as I have to wait for 7zip to finish zipping the file) so I think I really need glup-watch to achieve my goal.
Hi,
I am trying to develop a custom archiver service using gulp-watch and 7zip-min. I am lookig for a way to watch recursively a list of paths (to folders or specific files) which could contain hidden files/folders or even dotfiles/dotfolders.
An example is the folder in which I keep all my git repositories :
C:/Users/{user-id}/.gitglobal/{project-name}/.git/....
So for this one, I add to my watched list the following globs :
'C:/Users/{user-id}/.gitglobal/**/*', 'C:/Users/{user-id}/.gitglobal/**/.*', 'C:/Users/{user-id}/.gitglobal/**/.**/**/*', 'C:/Users/{user-id}/.gitglobal/**/.**/**/.*'
and the following options for gulp-watch
return watch(backupList, { ignoreInitial: false, read: false, dot: true, base: 'c:/' })
But the files deeper than
C:/Users/{user-id}/.gitglobal/{project-name}/.git/XXX
are never detected by the gulp-watch, like :C:/Users/{user-id}/.gitglobal/Project1/.git/logs/refs/heads
and so on..I really want my service to be as generic as possible, and be able to provide any kind of path to it.
FYI, I tried to output a minimatch result of the file given in example before, and it matches one of my globs. What did I missed ?
Thank you.
The text was updated successfully, but these errors were encountered: