(filename, text="", force_recreate=False)
| 127 | |
| 128 | |
| 129 | def CreateFileWithContents(filename, text="", force_recreate=False): |
| 130 | if CreateFile(filename, force_recreate): |
| 131 | with open(filename, "wb") as file: |
| 132 | file.write(text.encode('utf-8')) |
| 133 | return True |
| 134 | raise IOError("Can't create file \"{}\"!".format(filename)) |
| 135 | |
| 136 | |
| 137 | def RenameDirectory(srcname, dstname): |
nothing calls this directly
no test coverage detected