diff --git a/src/office.py b/src/office.py
index d6728c830312051c71bf3153186ca34001177c9d..2bdeec7adb7489aad2f898b79aea41f3176af372 100644
--- a/src/office.py
+++ b/src/office.py
@@ -30,8 +30,8 @@ class OfficeParser(abstract.AbstractParser):
         temp_folder = tempfile.mkdtemp()
 
         for item in zin.infolist():
-            if item.is_dir():
-                continue
+            if item.filename[-1] == '/':
+                continue  # `is_dir` is added in Python3.6
             elif item.filename.startswith('docProps/'):
                 if not item.filename.endswith('.rels'):
                     continue  # don't keep metadata files