|
@@ -236,7 +236,6 @@ def canHandle(path): |
|
|
if zipfile.is_zipfile(path): |
|
|
if zipfile.is_zipfile(path): |
|
|
return True |
|
|
return True |
|
|
|
|
|
|
|
|
print 'rar:', rarfile.is_rarfile(path) |
|
|
|
|
|
if rarfile.is_rarfile(path): |
|
|
if rarfile.is_rarfile(path): |
|
|
return True |
|
|
return True |
|
|
|
|
|
|
|
@@ -274,7 +273,6 @@ class ZipObject(FSObject, StorageFolder): |
|
|
self.zip = genZipFile(self.FSpath) |
|
|
self.zip = genZipFile(self.FSpath) |
|
|
hier = buildNameHier(self.zip.namelist(), self.zip.infolist()) |
|
|
hier = buildNameHier(self.zip.namelist(), self.zip.infolist()) |
|
|
|
|
|
|
|
|
print 'zip len:', len(hier) |
|
|
|
|
|
doupdate = False |
|
|
doupdate = False |
|
|
children = sets.Set(hier.keys()) |
|
|
children = sets.Set(hier.keys()) |
|
|
for i in self.pathObjmap.keys(): |
|
|
for i in self.pathObjmap.keys(): |
|
|