diff --git a/pym/cl_profile.py b/pym/cl_profile.py index b899d56..f26cf72 100644 --- a/pym/cl_profile.py +++ b/pym/cl_profile.py @@ -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()