jdspugh / jp-watch-c Goto Github PK
View Code? Open in Web Editor NEWMinimalist cross-platform app to watch a directory for changes.
License: MIT License
Minimalist cross-platform app to watch a directory for changes.
License: MIT License
The results of running jp-watch on Linux and MacOS are currently different. The differences are summarised below with the type of change and the resulting output per OS. Ideally the Linux version should produce output that is the same as the MacOS version which is more correct. Linux usually returns parent directories of changes instead of the actual changed files or directories:
echo '123' > <existing file>
<existing file>
<existing file>
touch <file>
<parent dir>
<file>
(should be just <file>
)b
contains FAN_CREATE
(ignore the lone create event)b2
contains FAN_MODIFY
(return this only)<file>
mkdir <dir>
<parent dir>
(should be <dir>
)b
contains FAN_CREATE
+ FAN_ONDIR
<dir>
mv <file> <dir>
| mv <dir> <dir>
<parent dir>
(should be <file>
)b
:
b
contains FAN_MOVE
(src parent path)b
contains FAN_MOVE
(dst parent path)b
contains FAN_MOVE_SELF
(the end of this path contains the name of the file moved)FAN_MOVE_SELF
and append it to both FAN_MOVE
directory paths. Output only the FAN_MOVE
directory paths with the appended filename.dst <dir/file>
src <dir/file>
touch a
or
echo '' > a
will results in duplicate paths output by jp-watch
/path/a
/path/a
This is because both a FAN_CREATE and a FAN_ATTRIB event is emitted for the same path. A solution could be storing the last path in the app's main event processing loop and use it to eliminate duplicate paths through loop iterations.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.