forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sceIoRename to move a file

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
benji



Joined: 14 Oct 2005
Posts: 17

PostPosted: Sun Nov 27, 2005 11:49 am    Post subject: sceIoRename to move a file Reply with quote

Hey,

I'm trying to move a file as the rename() libc function would.

Looking at the FA code indicates that they actually copy then delete, I was hoping that wasn't the only option. 71M, Shazz, did you use the copy trick because you couldn't find a way to actually move the file?

The only way I get sceIoRename to work is like this:

sceIoRename("path/to/file/oldname", "newname")

This will simply rename path/to/file/oldname to path/to/file/newname. Doing something like this:

sceIoRename("path/to/file/oldname", "path/to/another/oldname")

returns 0x80010002 =/

Are there any alternatives I'm missing here? Or should I just resign myself to copying then deleting?

Thanks,

benji
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group