119 |
str_list.append(" Inode %s\n" % rorpath.getinode()) |
str_list.append(" Inode %s\n" % rorpath.getinode()) |
120 |
str_list.append(" DeviceLoc %s\n" % rorpath.getdevloc()) |
str_list.append(" DeviceLoc %s\n" % rorpath.getdevloc()) |
121 |
|
|
122 |
|
# Save any hashes, if available |
123 |
|
if rorpath.has_sha1(): |
124 |
|
str_list.append(' SHA1Digest %s\n' % rorpath.get_sha1()) |
125 |
|
|
126 |
elif type == "None": return "".join(str_list) |
elif type == "None": return "".join(str_list) |
127 |
elif type == "dir" or type == "sock" or type == "fifo": pass |
elif type == "dir" or type == "sock" or type == "fifo": pass |
128 |
elif type == "sym": |
elif type == "sym": |
170 |
elif field == "CarbonFile": |
elif field == "CarbonFile": |
171 |
if data == "None": data_dict['carbonfile'] = None |
if data == "None": data_dict['carbonfile'] = None |
172 |
else: data_dict['carbonfile'] = string2carbonfile(data) |
else: data_dict['carbonfile'] = string2carbonfile(data) |
173 |
|
elif field == "SHA1Digest": data_dict['sha1'] = data |
174 |
elif field == "NumHardLinks": data_dict['nlink'] = int(data) |
elif field == "NumHardLinks": data_dict['nlink'] = int(data) |
175 |
elif field == "Inode": data_dict['inode'] = long(data) |
elif field == "Inode": data_dict['inode'] = long(data) |
176 |
elif field == "DeviceLoc": data_dict['devloc'] = long(data) |
elif field == "DeviceLoc": data_dict['devloc'] = long(data) |