|
|
@ -841,8 +841,8 @@ def checkDigestFile(digestfile):
|
|
|
|
def getFilesCount(directory):
|
|
|
|
def getFilesCount(directory):
|
|
|
|
"""Get files count from directory"""
|
|
|
|
"""Get files count from directory"""
|
|
|
|
if path.exists(directory):
|
|
|
|
if path.exists(directory):
|
|
|
|
return len(reduce(lambda x,y:x+y,map(lambda x:x[1]+x[2],
|
|
|
|
return reduce(lambda x,y:x+len(y[1])+len(y[2]),
|
|
|
|
os.walk(directory)),[]))
|
|
|
|
os.walk(directory),0)
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
|
|
|
|
|
|
|
|
def listDirectory(directory,fullPath=False):
|
|
|
|
def listDirectory(directory,fullPath=False):
|
|
|
|