Modify

Opened 19 years ago

Closed 19 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:

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)

Change History (1)

comment:1 Changed 19 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
Action
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.