Lines Matching refs:userName
18 def userNameToFileName(userName: str, existing=[], prefix="", suffix=""):
69 if not isinstance(userName, str):
76 if not prefix and userName[0] == ".":
77 userName = "_" + userName[1:]
80 for character in userName:
88 userName = "".join(filteredUserName)
91 userName = userName[:sliceLength]
94 for part in userName.split("."):
98 userName = ".".join(parts)
100 fullName = prefix + userName + suffix
102 fullName = handleClash1(userName, existing, prefix, suffix)
106 def handleClash1(userName, existing=[], prefix="", suffix=""): argument
139 if prefixLength + len(userName) + suffixLength + 15 > maxFileNameLength:
140 l = (prefixLength + len(userName) + suffixLength + 15)
142 userName = userName[:sliceLength]
147 name = userName + str(counter).zfill(15)