]> git.parisson.com Git - teleforma.git/commitdiff
fix hidden files
authoryomguy <yomguy@parisson.com>
Tue, 5 Feb 2013 12:31:51 +0000 (13:31 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 5 Feb 2013 12:31:51 +0000 (13:31 +0100)
teleforma/management/commands/teleforma-import-conferences.py

index 7e399a60ee2589cbfa96976b30efe36beb9616fe..ef962599d18c1e611c8db49a4fa8dbeccee6697a 100644 (file)
@@ -71,7 +71,7 @@ class Command(BaseCommand):
                 name = os.path.splitext(filename)[0]
                 ext = os.path.splitext(filename)[1][1:]
 
-                if ext in self.original_format:
+                if ext and ext in self.original_format and name[0] != '.':
                     root_list = root.split(os.sep)
                     public_id = root_list[-1]
                     course = root_list[-2]