Zero sized directory entries
As it stands, vcopy barfs with zero sized directory entries (which are alarmingly common on victor disks). I'm not a python programmer but this fixes it for copying off a disk image - probably something needs to be done to deal with copying to a disk image: (vcopy, line 200 onwards). Also note that it gets a bit unhappy, understandably, with some of the characters the victor uses in filenames at times (I think $ and *) - I'll have a look at that again as and when I encounter it.
for entry in root_dir:
path = entry.path
if path is None:
break
if entry.fileSize > 0:
if ':' + path in files:
data = image.loadFile(entry)
print("%-15s" % (path), entry.modified)
if args.dest[0] == ':':
write_image(image, path, data, args.dest[1:])
pass
else:
save_file(path, data, args.dest)
else:
save_file(path, bytearray(), args.dest)
Edited by DanielJ