@@ -30,3 +30,10 @@ for path in os.listdir(rootPath):
currentDir=""
count2 = count2 + 1
count = count + 1
+
+# Check if there are remaining directories to include in a tar.gz file
+if currentDir != "":
+ shellStr = "tar -zcf /ossfs/crawl-mrdx/mrdx%s.tar.gz" % (
+ count2) + currentDir
+ print(shellStr)
+ os.system(shellStr)