class_docstr: A snapshot of stat information of files in a directory.
  
  :param path:
      The directory path for which a snapshot should be taken.
  :type path:
      ``str``
  :param recursive:
      ``True`` if the entire directory tree should be included in the
      snapshot; ``False`` otherwise.
  :type recursive:
      ``bool``
  :param walker_callback:
      .. deprecated:: 0.7.2
  :param stat:
      Use custom stat function that returns a stat structure for path.
      Currently only st_dev, st_ino, st_mode and st_mtime are needed.
      
      A function with the signature ``walker_callback(path, stat_info)``
      which will be called for every entry in the directory tree.
  :param listdir:
      Use custom listdir function. See ``os.listdir`` for details.
class_docstr_tok: ["A","snapshot","of","stat","information","of","files","in","a","directory",".",":","param","path",":","The","directory","path","for","which","a","snapshot","should","be","taken",".",":","type","path",":","``","str","``",":","param","recursive",":","``","True","``","if","the","entire","directory","tree","should","be","included","in","the","snapshot",";","``","False","``","otherwise",".",":","type","recursive",":","``","bool","``",":","param","walker_callback",":","..","deprecated",":",":","0.7.2",":","param","stat",":","Use","custom","stat","function","that","returns","a","stat","structure","for","path",".","Currently","only","st_dev",",","st_ino",",","st_mode","and","st_mtime","are","needed",".","A","function","with","the","signature","``","walker_callback","(","path",",","stat_info",")","``","which","will","be","called","for","every","entry","in","the","directory","tree",".",":","param","listdir",":","Use","custom","listdir","function",".","See","``","os.listdir","``","for","details","."]
docstr: Returns a stat information object for the specified path from
  the snapshot.
  
  Attached information is subject to change. Do not use unless
  you specify `stat` in constructor. Use :func:`inode`, :func:`mtime`,
  :func:`isdir` instead.
  
  :param path:
      The path for which stat information should be obtained
      from a snapshot.
docstr_tok: ["Returns","a","stat","information","object","for","the","specified","path","from","the","snapshot",".","Attached","information","is","subject","to","change",".","Do","not","use","unless","you","specify","`","stat","`","in","constructor",".","Use",":","func",":","`","inode","`",",",":","func",":","`","mtime","`",",",":","func",":","`","isdir","`","instead",".",":","param","path",":","The","path","for","which","stat","information","should","be","obtained","from","a","snapshot","."]
code: def stat_info(self, path):
      """
      Returns a stat information object for the specified path from
      the snapshot.
  
      Attached information is subject to change. Do not use unless
      you specify `stat` in constructor. Use :func:`inode`, :func:`mtime`,
      :func:`isdir` instead.
  
      :param path:
          The path for which stat information should be obtained
          from a snapshot.
      """
      return self._stat_info[path]
  
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 DirectorySnapshot obj's underlying member method code with example usage: obj.stat_info(path) and returns: self