spacepaste

  1.  
  2. def mk_dummy_inode(path, isdir=False):
  3. return {
  4. "node_path": path,
  5. "bytesize": osp.getsize(path),
  6. "mtime": osp.getmtime(path),
  7. "stat_result": dumps(stat(path), protocol=4),
  8. "md5": "directory" if isdir else "d41d8cd98f00b204e9800998ecf8427e",
  9. }
  10.