mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-23 03:11:49 +01:00
Fix rename.
This commit is contained in:
parent
e2af2036d6
commit
5ef0f27c2d
@ -2167,8 +2167,17 @@ FTP_DECLARE(RNFR)
|
||||
FS_makePath(PATH_CHAR, session->buffer),
|
||||
FS_OPEN_READ, FS_ATTRIBUTE_NONE);
|
||||
if(ret != 0)
|
||||
{
|
||||
ret = FSUSER_OpenDirectory(NULL, &fd, sdmcArchive,
|
||||
FS_makePath(PATH_CHAR, session->buffer));
|
||||
if(ret == 0)
|
||||
ret = FSDIR_Close(fd);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = FSFILE_Close(fd);
|
||||
}
|
||||
|
||||
if(ret != 0)
|
||||
{
|
||||
console_print("no such file or directory\n");
|
||||
|
Loading…
Reference in New Issue
Block a user