class_docstr: Thread-safe kevent descriptor collection.
class_docstr_tok: ["Thread-safe","kevent","descriptor","collection","."]
docstr: Adds a :class:`KeventDescriptor` to the collection for the given
  path.
  
  :param path:
      The path for which a :class:`KeventDescriptor` object will be
      added.
  :param is_directory:
      ``True`` if the path refers to a directory; ``False`` otherwise.
  :type is_directory:
      ``bool``
docstr_tok: ["Adds","a",":","class",":","`","KeventDescriptor","`","to","the","collection","for","the","given","path",".",":","param","path",":","The","path","for","which","a",":","class",":","`","KeventDescriptor","`","object","will","be","added",".",":","param","is_directory",":","``","True","``","if","the","path","refers","to","a","directory",";","``","False","``","otherwise",".",":","type","is_directory",":","``","bool","``"]
code: def add(self, path, is_directory):
      """
      Adds a :class:`KeventDescriptor` to the collection for the given
      path.
  
      :param path:
          The path for which a :class:`KeventDescriptor` object will be
          added.
      :param is_directory:
          ``True`` if the path refers to a directory; ``False`` otherwise.
      :type is_directory:
          ``bool``
      """
      with self._lock:
          path = absolute_path(path)
          if not self._has_path(path):
              self._add_descriptor(KeventDescriptor(path, is_directory))
  
imports: from __future__ import with_statement
  from wandb_watchdog.utils import platform
  import threading
  import errno
  import sys
  import stat
  import os
  from wandb_watchdog.observers.api import BaseObserver, EventEmitter, DEFAULT_OBSERVER_TIMEOUT, DEFAULT_EMITTER_TIMEOUT
  from wandb_watchdog.utils.dirsnapshot import DirectorySnapshot
  from wandb_watchdog.events import DirMovedEvent, DirDeletedEvent, DirCreatedEvent, DirModifiedEvent, FileMovedEvent, FileDeletedEvent, FileCreatedEvent, FileModifiedEvent, EVENT_TYPE_MOVED, EVENT_TYPE_DELETED, EVENT_TYPE_CREATED
label_desc: Use image node_id 7 for calling the KeventDescriptorSet obj's underlying member method code with example usage: obj.add(path, is_directory) without return types