Modify ↓
Opened 19 years ago
Closed 19 years ago
#197 closed defect (fixed)
cannot rename 'foo' to 'hoge/piyo'
Reported by: | Owned by: | Noah Kantrowitz | |
---|---|---|---|
Priority: | normal | Component: | WikiRenameScript |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
when i rename wikipage foo to hoge/piyo, I have this error
# python RenamePage.py foo hoge/piyo /path/to/projenv Traceback (most recent call last): File "RenamePage.py", line 54, in ? os.path.join(tracenv, 'attachments/wiki', newname)) OSError: [Errno 2] No such file or directory
I changed the script at line 54 as follows. then successful.
- from
-
os.rename(os.path.join(tracenv, 'attachments/wiki', oldname),
- to
-
os.renames(os.path.join(tracenv, 'attachments/wiki', oldname),
I'm sorry for my bad english.
Thanks
Attachments (0)
Note: See
TracTickets for help on using
tickets.
(In [451]) Changing os.rename() to os.renames(). Closes #197.
Thanks for the tip kato_tatsuya.