develop
asamoukin 16 years ago
parent 9b71d425fb
commit e220266bf9

@ -1657,10 +1657,15 @@ class _file(_error):
self.baseDir = False
self.dirs = []
self.files = []
self.links = []
def getFilesDir(dirP, dirname,names):
for nameFile in names:
absNameFile = dirname + "/" + nameFile
if os.path.isfile(absNameFile):
if os.path.islink(absNameFile):
dest = absNameFile
src = os.readlink(absNameFile)
dirP.links.append((src,dest))
elif os.path.isfile(absNameFile):
dirP.files.append(absNameFile)
elif os.path.isdir(absNameFile):
dirP.dirs.append(absNameFile)

@ -226,7 +226,8 @@ def columnWrite(*cols):
print
def justify(s,width):
return s
# добавить отступы чтобы закончить колонку
return s.ljust(width, ' ')
'''Выровнить текст по ширине
Параметры:

Loading…
Cancel
Save