Добавлен поиск socket при сканировании директорий

git-svn-id: http://svn.calculate.ru/calculate2/calculate-lib/trunk@815 c91db197-33c1-4113-bf15-f8a5c547ca64
develop
asamoukin 16 years ago
parent b0e16625c0
commit 0bbd56014c

@ -1783,6 +1783,7 @@ class _file(_error):
self.dirs = []
self.files = []
self.links = []
self.sockets = []
def getFilesDir(dirP, dirname,names):
for nameFile in names:
absNameFile = dirname + "/" + nameFile
@ -1794,6 +1795,8 @@ class _file(_error):
dirP.files.append(absNameFile)
elif os.path.isdir(absNameFile):
dirP.dirs.append(absNameFile)
elif stat.S_ISSOCK(os.stat(absNameFile)[stat.ST_MODE]):
dirP.sockets.append(absNameFile)
for profileDir in profilesDirs:
if profileDir:
dirP = dirProf()

Loading…
Cancel
Save