python TypeError: must be encoded string without NULL bytes, not str
"...Photos\Modified\0-PyTest"
Its taking the \0 as a null character. You have to escape \
using \\
, or just put an r
before the string to make it raw:
r'C:\Users\me\Photo Projects\Project Name\Project Photos\Modified\0-PyTest'