Menu

Commit [r7361]  Maximize  Restore  History

`copytree` works by recursively scanning a filesystem subtree and copy each filename one by one. The problem is that we can't assume any encoding for those filenames, so we better have to respect the byte sequence as given by `os.listdir()` (we can't expect `os.listdir()` to provide us with an unicode output on all platforms).

We also need to make sure that the parameters given to `copytree` (`src`, `dst` and the files in `skip`) are later used as `str` objects, in a reasonable encoding.

Closes #6677.

cboos 2008-07-21

changed /branches/0.11-stable/trac/admin/console.py
/branches/0.11-stable/trac/admin/console.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB