Add files via upload

This commit is contained in:
Lerking
2018-05-08 13:01:38 +02:00
committed by GitHub
parent 14fcf55cbe
commit b4b5d5d008
4 changed files with 21 additions and 17 deletions
+3 -3
View File
@@ -9,11 +9,11 @@ import os
import sys
import io
import time
from h2inc_globals import destdir, defdest, filelist
from h2inc_globals import destdir, defdest, filelist, folderlist, cnt, srcdir
def sourcedir_filecnt(sourcedir):
### Return the number of files, ending with '.h', in sourcedir - including subdirectories ###
cnt = 0
global cnt
global filelist
global srcdir
srcdir = sourcedir
@@ -28,7 +28,7 @@ def sourcedir_filecnt(sourcedir):
def sourcedir_foldercnt(sourcedir):
### Return the number of folders, if it contains '*.h' files, in sourcedir - including subdirectories ###
global cnt
cnt = 0
global folderlist
for folderName, subfolders, files in os.walk(sourcedir):
if subfolders: