Oct-28-2022, 02:12 AM
(This post was last modified: Oct-28-2022, 02:12 AM by deanhystad.)
raw is only a thing for string literals. Normally when Python encounters a string while "compiling" your program, it replaces escape sequences with the actual un-printable character. The "r" prefix before a string literal tells Python to not look for escape sequences when making the str object. After the program compile stage, "raw" strings are not a thing anymore. All str objects are essentially "raw" strings, because none of them contain escape sequences.
if __name__ == "__main__": folderpath = r"\\IND200300400.XXX.XXXX.XXX\Recon Project\output1" # <- The "r" belongs here site = "US" createfolder(folderpath, site)