Opened 11 years ago

Closed 11 years ago

#197 closed defect (fixed)

cannot rename 'foo' to 'hoge/piyo'

Reported by: kato_tatsuya@… Owned by: coderanger
Priority: normal Component: WikiRenameScript
Severity: normal Keywords:
Cc: Trac Release:


when i rename wikipage foo to hoge/piyo, I have this error

# python foo hoge/piyo /path/to/projenv
Traceback (most recent call last):
  File "", 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.


os.rename(os.path.join(tracenv, 'attachments/wiki', oldname),
os.renames(os.path.join(tracenv, 'attachments/wiki', oldname),

I'm sorry for my bad english.


Attachments (0)

Change History (1)

comment:1 Changed 11 years ago by coderanger

  • Resolution set to fixed
  • Status changed from new to closed

(In [451]) Changing os.rename() to os.renames(). Closes #197.

Thanks for the tip kato_tatsuya.

Add Comment

Modify Ticket

as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.