Added checks to make sure the specified track exists

Added precondition checks to validate input files and paths to return more informative error messages as per #2
This commit is contained in:
Drew Heavner
2019-12-11 23:40:19 -05:00
parent 3fe51cca76
commit 3e0a7f808c
7306 changed files with 1659333 additions and 0 deletions

27
node_modules/fsevents/src/storage.cc generated vendored Normal file
View File

@@ -0,0 +1,27 @@
/*
** © 2014 by Philipp Dunkel <pip@pipobscure.com>
** Licensed under MIT License.
*/
struct fse_event {
UInt64 id;
UInt32 flags;
CFStringRef path;
fse_event(CFStringRef eventPath, UInt32 eventFlag, UInt64 eventId) {
this->path = eventPath;
this->flags = eventFlag;
this->id = eventId;
if (this->path != NULL)
CFRetain(this->path);
}
~fse_event() {
if (this->path != NULL)
CFRelease(this->path);
}
private:
fse_event(const fse_event&);
void operator=(const fse_event&);
};