Android Question Renaming a Directory

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi to All
I need to rename a not empty directory, located in GetSafeDirDefaultExternal, (without renaming the internal files). I have looked at some posts relative to renaming files. Some of them are old, other rename files (and not dirs). Finally I have not clear ideas on what to do.
Any suggestion?
Thanks in advance
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
I saw that post but it was not clear that I must simply leave empty the parameters for files. At the end it is:
B4X:
RenameTo(previousDir,"",NewDir,"")
and it works. Thanks a lot.
 
Upvote 0
Top