unicode shutil.copy() changes a file name during copy?

Terry Reedy tjreedy at udel.edu
Wed Feb 16 18:16:30 CET 2011

On 2/15/2011 11:50 PM, dave wrote:
> i'm on windows, using active python 2.7.1
> i've written a script to copy a folder of files to dest folder..
> one if the files in this folder has the section symbol (§, '\x15') as
> part of the file name
> shutil.copy(src_file, dst_file) "can't find the file specified" when
> it does the os.chmod() part, can't find dest file,
> cuz the file got copied with "_" in place of the section symbol.
> gar.

What happens if you try this with 3.2?

Terry Jan Reedy

More information about the Python-list mailing list