Supplying watch() with just a filename and no path will result in a "parent directory could not be opened" error.
This is because Path.parent() doesn't return the actual path to the parent directory, but rather the original path minus the last entry, resulting in an empty string when given just a filename.