Rename file or folder not working for SD card using C/C++

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Rename file or folder not working for SD card using C/C++

Postby snahmad75 » Sat Sep 08, 2018 2:59 pm

Hi,

//int rc = rename("/sdcard/myfolder/", "/sdcard/myfolder2/");
int rc = rename("/sdcard/foo.txt", "/sdcard/foo2.txt");


I get rc =-1


Any idea?

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: Rename file or folder not working for SD card using C/C++

Postby snahmad75 » Sat Sep 08, 2018 7:37 pm

I think rename file works. but it creates another copy of file.

but rename existing folder does not work.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 86 guests