"Delaney, Timothy C (Timothy)" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Daniel Bickett wrote:

> >     shutil.move( "C:\omg.txt" , "C:\folder\subdir" )
                      ^              ^^     ^
> The problem is that backslash is the escape character. In particular,
> '\f' is a form feed.

> You have a couple of options:

You can also include an r to make it a raw string if extra or reversed
slashes look odd

shutil.move( r"C:\omg.txt" , r"C:\folder\subdir" )


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to