Search Unity

How can I copy files from streamingAssetsPath to persistentDataPath only when changed

Discussion in 'Android' started by ingtellect, Oct 24, 2013.

  1. ingtellect

    ingtellect

    Joined:
    Sep 2, 2013
    Posts:
    4
    I have some files(html and images) in streamAssetPath. Because in Android webview can't read files in streamAssetPath, I copy them to persistentDataPath and read them.
    For now I always copy the files when the webview is loaded, and I would like to change it only when the files in the streamAssetPath and the files in the PersistentDataPath are different from each other.
    I can read information of files in the persistentDataPath using FileInfo class but I couldn't find the way I can read information of files in streamAssetPath. Is there any way to do it?
    Thank you in advance.
     
  2. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899