From 5ef0f27c2da386c3b7e1a1ef1426bf41fba941e3 Mon Sep 17 00:00:00 2001 From: mtheall Date: Thu, 11 Dec 2014 11:21:20 -0600 Subject: [PATCH] Fix rename. --- source/ftp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/ftp.c b/source/ftp.c index 7316566..8ba832c 100644 --- a/source/ftp.c +++ b/source/ftp.c @@ -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");