Lines Matching refs:pth
99 def checksum_dir(pth): argument
101 if pth == "/":
103 pth = pth.rstrip("/")
105 for root, dirs, files in os.walk(pth, topdown=True):
108 fullpth = os.path.join(root, name).replace(pth, os.path.join(pth, "."))
115 for pth in filelist_regex.split(filelist):
116 if not pth:
118 pth = pth.strip()
119 if not pth:
121 exist = pth.split(":")[1]
124 pth = pth.split(":")[0]
125 if '*' in pth:
127 for f in glob.glob(pth):
135 elif os.path.isdir(pth):
136 if not os.path.islink(pth):
137 checksums.extend(checksum_dir(pth))
139 checksum = checksum_file(pth)
141 checksums.append((pth, checksum))