Opened 16 years ago

Closed 16 years ago

#197 closed defect (fixed)

cannot rename 'foo' to 'hoge/piyo'

Reported by: kato_tatsuya@… Owned by: Noah Kantrowitz
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 16 years ago by Noah Kantrowitz

Resolution: fixed
Status: newclosed

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

Thanks for the tip kato_tatsuya.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.