- Home /
Copy an entire folder from streamingAssets to persistentData (Android + iOS)
Hello Everyone,
Can somebody knows how to simply copy an entire folder present in the streamingAssets to the persistentData folder.
In my project it works on iOS but not on Android. I understand the WWW class for the files but not for folder.
My goal :
void copyEntireDirectoy(string src, string dst)
with src = System.IO.Path.Combine(Application.streamingAssetsPath,"levelData") and dst = System.IO.Path.Combine(Application.persistentDataPath,"levelData")
levelData is a folder with multiples subfolders
Sorry for my bad english ...
Thanks !
Answer by molul · Dec 06, 2017 at 05:46 PM
I'm having the same problem and I'm amazed there's no easy solution for something so habitual.
Your answer
Follow this Question
Related Questions
Problem using StreamingAssets on Android build 0 Answers
Make a folder that acts same as streamingassets but can use and edit .asset types. 0 Answers
(Solved)Why my android build showing black screen constantly? 1 Answer
iOS Streaming Assets inaccessible 0 Answers
Load StreamingAssets via WWW is painfully slow at the first time 1 Answer