'Returns a dictionary for easy serialization'

def to_json_dict(self):

    KEYS = ('path', 'size', 'atime', 'mtime', 'mode', 'user', 'group', 'blockSize', 'replication')
    res = {}
    for k in KEYS:
        res[k] = getattr(self, k)
    return res
