shutil.move has a mind of its own
drs
drs at remove-to-send-mail-ecpsoftware.com
Tue Jan 11 01:11:04 EST 2005
"Delaney, Timothy C (Timothy)" <tdelaney at avaya.com> wrote in message
news:mailman.492.1105420104.22381.python-list at python.org...
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" )
More information about the Python-list
mailing list