Page 1 of 1

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

Posted: Sat Sep 08, 2018 2:59 pm
by snahmad75
Hi,

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


I get rc =-1


Any idea?

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

Posted: Sat Sep 08, 2018 7:37 pm
by snahmad75
I think rename file works. but it creates another copy of file.

but rename existing folder does not work.