class_docstr: Compares two directory snapshots and creates an object that represents
  the difference between the two snapshots.
  
  :param ref:
      The reference directory snapshot.
  :type ref:
      :class:`DirectorySnapshot`
  :param snapshot:
      The directory snapshot which will be compared
      with the reference snapshot.
  :type snapshot:
      :class:`DirectorySnapshot`
class_docstr_tok: ["Compares","two","directory","snapshots","and","creates","an","object","that","represents","the","difference","between","the","two","snapshots",".",":","param","ref",":","The","reference","directory","snapshot",".",":","type","ref",":",":","class",":","`","DirectorySnapshot","`",":","param","snapshot",":","The","directory","snapshot","which","will","be","compared","with","the","reference","snapshot",".",":","type","snapshot",":",":","class",":","`","DirectorySnapshot","`"]
docstr: List of directories that were moved.
  
  Each event is a two-tuple the first item of which is the path
  that has been renamed to the second item in the tuple.
docstr_tok: ["List","of","directories","that","were","moved",".","Each","event","is","a","two-tuple","the","first","item","of","which","is","the","path","that","has","been","renamed","to","the","second","item","in","the","tuple","."]
code: def dirs_moved(self):
      """
      List of directories that were moved.
  
      Each event is a two-tuple the first item of which is the path
      that has been renamed to the second item in the tuple.
      """
      return self._dirs_moved
  
imports: import errno
  import os
  from stat import S_ISDIR
  from wandb_watchdog.utils import stat
label_desc: Use image node_id 7 for calling the DirectorySnapshotDiff obj's underlying member method code with example usage: obj.dirs_moved() and returns: self